summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2012-10-20 22:44:22 +0000
committermarcel <marcel@FreeBSD.org>2012-10-20 22:44:22 +0000
commit9f88b87a4eb4fac2258767f1ce5d8d3d416d7653 (patch)
tree60b04ee3d925384656e100ed02a265d9f9cf0fc7
parent6062df3e6644d06abdfd53dd83a7a4475ef18264 (diff)
downloadFreeBSD-src-9f88b87a4eb4fac2258767f1ce5d8d3d416d7653.zip
FreeBSD-src-9f88b87a4eb4fac2258767f1ce5d8d3d416d7653.tar.gz
Revert r241752. The claim that it's more correct while at the same time
causing a build breakage is interesting to say the least.
-rw-r--r--share/mk/bsd.dep.mk9
1 files changed, 4 insertions, 5 deletions
diff --git a/share/mk/bsd.dep.mk b/share/mk/bsd.dep.mk
index 3e7af05..deac736 100644
--- a/share/mk/bsd.dep.mk
+++ b/share/mk/bsd.dep.mk
@@ -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
OpenPOWER on IntegriCloud