Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/mk allow programs to override the program target.
details: https://anonhg.NetBSD.org/src/rev/72a37894ea90
branches: trunk
changeset: 502240:72a37894ea90
user: christos <christos%NetBSD.org@localhost>
date: Sun Jan 14 06:17:27 2001 +0000
description:
allow programs to override the program target.
diffstat:
share/mk/bsd.prog.mk | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (25 lines):
diff -r bb309c2132a4 -r 72a37894ea90 share/mk/bsd.prog.mk
--- a/share/mk/bsd.prog.mk Sun Jan 14 06:08:24 2001 +0000
+++ b/share/mk/bsd.prog.mk Sun Jan 14 06:17:27 2001 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prog.mk,v 1.123 2001/01/08 07:41:10 mrg Exp $
+# $NetBSD: bsd.prog.mk,v 1.124 2001/01/14 06:17:27 christos Exp $
# @(#)bsd.prog.mk 8.2 (Berkeley) 4/2/94
.if !target(__initialized__)
@@ -119,6 +119,7 @@
.if defined(OBJS) && !empty(OBJS)
.NOPATH: ${OBJS}
+.if !target(${PROG})
.if defined(DESTDIR)
${PROG}: ${LIBCRT0} ${DPSRCS} ${OBJS} ${LIBC} ${LIBCRTBEGIN} ${LIBCRTEND} ${DPADD}
@@ -130,6 +131,7 @@
${CC} ${LDFLAGS} ${LDSTATIC} -o ${.TARGET} ${OBJS} ${LDADD}
.endif # defined(DESTDIR)
+.endif # !target(${PROG})
.endif # defined(OBJS) && !empty(OBJS)
.if !defined(MAN)
Home |
Main Index |
Thread Index |
Old Index