Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/mk Better version of previous. Use an .ifdef in this ...



details:   https://anonhg.NetBSD.org/src/rev/896a28a72a5c
branches:  trunk
changeset: 516267:896a28a72a5c
user:      tv <tv%NetBSD.org@localhost>
date:      Fri Oct 19 19:07:48 2001 +0000

description:
Better version of previous.  Use an .ifdef in this case, so the rule isn't
even defined without YHEADER.  (Otherwise can lead to odd behavior.)

diffstat:

 share/mk/bsd.sys.mk |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r 1c78e015291d -r 896a28a72a5c share/mk/bsd.sys.mk
--- a/share/mk/bsd.sys.mk       Fri Oct 19 17:37:32 2001 +0000
+++ b/share/mk/bsd.sys.mk       Fri Oct 19 19:07:48 2001 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.sys.mk,v 1.54 2001/10/19 17:05:26 tv Exp $
+#      $NetBSD: bsd.sys.mk,v 1.55 2001/10/19 19:07:48 tv Exp $
 #
 # Overrides used for NetBSD source tree builds.
 
@@ -86,10 +86,13 @@
 YFLAGS+=       ${YPREFIX:D-p${YPREFIX}} ${YHEADER:D-d}
 
 .y.o: # remove to force use of .y.c->.c.o transforms
-.y.h: ${YHEADER:D${.TARGET:.h=.c}}
 .y:
        ${YACC.y} -b ${.TARGET:R} ${.IMPSRC}
        ${LINK.c} -o ${.TARGET} ${.TARGET:R}.tab.c ${LDLIBS}
        rm -f ${.TARGET:R}.tab.[ch]
 .y.c:
        ${YACC.y} -o ${.TARGET} ${.IMPSRC}
+
+.ifdef YHEADER
+.y.h: ${.TARGET:.h=.c}
+.endif



Home | Main Index | Thread Index | Old Index