Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Oct 2012 22:44:22 +0000 (UTC)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r241790 - head/share/mk
Message-ID:  <201210202244.q9KMiMer023523@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marcel
Date: Sat Oct 20 22:44:22 2012
New Revision: 241790
URL: http://svn.freebsd.org/changeset/base/241790

Log:
  Revert r241752. The claim that it's more correct while at the same time
  causing a build breakage is interesting to say the least.

Modified:
  head/share/mk/bsd.dep.mk

Modified: head/share/mk/bsd.dep.mk
==============================================================================
--- head/share/mk/bsd.dep.mk	Sat Oct 20 19:38:22 2012	(r241789)
+++ head/share/mk/bsd.dep.mk	Sat Oct 20 22:44:22 2012	(r241790)
@@ -95,17 +95,16 @@ CLEANFILES+= ${_LC}
 SRCS:=	${SRCS:S/${_YSRC}/${_YC}/}
 CLEANFILES+= ${_YC}
 .if !empty(YFLAGS:M-d) && !empty(SRCS:My.tab.h)
-y.tab.h: ${_YSRC}
+.ORDER: ${_YC} y.tab.h
+${_YC} y.tab.h: ${_YSRC}
 	${YACC} ${YFLAGS} ${.ALLSRC}
-${_YC}: y.tab.h
 	cp y.tab.c ${_YC}
 CLEANFILES+= y.tab.c y.tab.h
 .elif !empty(YFLAGS:M-d)
 .for _YH in ${_YC:R}.h
-${_YH}: ${_YSRC}
+${_YH}: ${_YC}
+${_YC}: ${_YSRC}
 	${YACC} ${YFLAGS} -o ${_YC} ${.ALLSRC}
-${_YC}: ${_YH}
-	@touch ${.TARGET}
 SRCS+=	${_YH}
 CLEANFILES+= ${_YH}
 .endfor



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