Date: Thu, 09 Jan 2003 11:56:45 +0100 From: Dag-Erling Smorgrav <des@ofug.org> To: arch@freebsd.org Subject: small bsd.prog.mk change Message-ID: <xzpn0mah9qq.fsf@flood.ping.uio.no>
next in thread | raw e-mail | index | archive | help
--=-=-=
The attached patch prevents the following warning which occurs when
building the loader:
"/usr/share/mk/bsd.prog.mk", line 37: warning: duplicate script for target "loader" ignored
DES
--
Dag-Erling Smorgrav - des@ofug.org
--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment; filename=loader.diff
Index: bsd.prog.mk
===================================================================
RCS file: /home/ncvs/src/share/mk/bsd.prog.mk,v
retrieving revision 1.129
diff -u -r1.129 bsd.prog.mk
--- bsd.prog.mk 17 Oct 2002 13:48:13 -0000 1.129
+++ bsd.prog.mk 9 Jan 2003 10:54:47 -0000
@@ -30,11 +30,13 @@
OBJS+= ${SRCS:N*.h:R:S/$/.o/g}
+.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
.else !defined(SRCS)
--=-=-=--
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpn0mah9qq.fsf>
