Module Name:    src
Committed By:   christos
Date:           Sun Dec 13 18:40:50 UTC 2009

Modified Files:
        src/share/mk: bsd.sys.mk

Log Message:
Don't add the .h rule for yacc if we are not really building (-n)


To generate a diff of this commit:
cvs rdiff -u -r1.186 -r1.187 src/share/mk/bsd.sys.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/mk/bsd.sys.mk
diff -u src/share/mk/bsd.sys.mk:1.186 src/share/mk/bsd.sys.mk:1.187
--- src/share/mk/bsd.sys.mk:1.186	Mon Nov 30 11:13:23 2009
+++ src/share/mk/bsd.sys.mk	Sun Dec 13 13:40:50 2009
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.sys.mk,v 1.186 2009/11/30 16:13:23 uebayasi Exp $
+#	$NetBSD: bsd.sys.mk,v 1.187 2009/12/13 18:40:50 christos Exp $
 #
 # Build definitions used for NetBSD source tree builds.
 
@@ -200,7 +200,9 @@
 	${YACC.y} -o ${.TARGET} ${.IMPSRC}
 
 .ifdef YHEADER
+.if empty(.MAKEFLAGS:M-n)
 .y.h: ${.TARGET:.h=.c}
 .endif
+.endif
 
 .endif	# !defined(_BSD_SYS_MK_)

Reply via email to