Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Aug 2003 13:01:05 +0300
From:      Ruslan Ermilov <ru@freebsd.org>
To:        Andrew Turner <zombie@i4free.co.nz>
Cc:        Nate Lawson <nate@root.org>
Subject:   Re: Warning with loader Makefile?
Message-ID:  <20030808100105.GB40307@sunbay.com>
In-Reply-To: <3F32DFFD.4060402@i4free.co.nz>
References:  <20030807074557.S75796@root.org> <3F32DFFD.4060402@i4free.co.nz>

next in thread | previous in thread | raw e-mail | index | archive | help

--jho1yZJdad60DJr+
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Aug 08, 2003 at 11:25:49AM +1200, Andrew Turner wrote:
[...]
> I found this patch worked by removing the secound ${PROG} target if=20
> there was already one there.
>=20
> --- /usr/src/share/mk/bsd.prog.mk	Mon Jun 30 06:16:26 2003
> +++ /usr/share/mk/bsd.prog.mk	Mon Aug  4 17:54:22 2003
> @@ -31,11 +31,13 @@
> =20
>  OBJS+=3D  ${SRCS:N*.h:R:S/$/.o/g}
> =20
> +.if !target(${PROG})
>  ${PROG}: ${OBJS}
>  .if defined(PROG_CXX)
>  	${CXX} ${CXXFLAGS} ${LDFLAGS} -o ${.TARGET} ${OBJS} ${LDADD}
>  .else
>  	${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${OBJS} ${LDADD}
> +.endif
>  .endif
> =20
>  .else !defined(SRCS)

No, thanks.  If a makefile has a

${PROG}: foo

line, just to add an additional dependency, this patch will break
building the ${PROG}.


Cheers,
--=20
Ruslan Ermilov		Sysadmin and DBA,
ru@sunbay.com		Sunbay Software Ltd,
ru@FreeBSD.org		FreeBSD committer

--jho1yZJdad60DJr+
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQE/M3TgUkv4P6juNwoRAlLTAJ9Qj9B+tpX76DLGhUlrzVfRUHud2ACfdDoT
yZFH4CZ6HxPEVRu82l8eOw0=
=3oev
-----END PGP SIGNATURE-----

--jho1yZJdad60DJr+--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030808100105.GB40307>