summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2016-06-14 16:20:05 +0000
committerbdrewery <bdrewery@FreeBSD.org>2016-06-14 16:20:05 +0000
commite4635781ee43caef95c5279a3472a13298ad8b0a (patch)
tree0b273e915f1348b824ec7e6b0ada1315a33aeac1 /usr.bin
parent65aaede0b9fcd350ec8d95ad87705c16f95dd134 (diff)
downloadFreeBSD-src-e4635781ee43caef95c5279a3472a13298ad8b0a.zip
FreeBSD-src-e4635781ee43caef95c5279a3472a13298ad8b0a.tar.gz
WITH_META_MODE: Fix rebuilding maketab outside of build-tools.
The bsd.dep.mk yacc targets rely on only the .c file getting a .meta file. However the previous code here relying on only the .h file meant that it would be generated with a .meta file. r301285 made it so that the .h file is never expected to get a .meta file. To keep this restriction in place add in an extra dependency on the .c file so that it is generated at this time. It's a hack but the best for the patterns we have at the moment for handling build-tools and side-effect-generated files. Reported by: Mark Millard Approved by: re (implicit) Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/awk/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/awk/Makefile b/usr.bin/awk/Makefile
index 168b22e..f6c1baa 100644
--- a/usr.bin/awk/Makefile
+++ b/usr.bin/awk/Makefile
@@ -17,8 +17,10 @@ MLINKS= awk.1 nawk.1
CLEANFILES= maketab proctab.c ytab.h
-ytab.h: awkgram.h .NOMETA
- ln -sf ${.ALLSRC} ${.TARGET}
+# XXX: awkgram.c isn't really needed here but it is added to keep
+# awkgram.h: .NOMETA respected.
+ytab.h: awkgram.c awkgram.h .NOMETA
+ ln -sf ${.ALLSRC:M*.h} ${.TARGET}
proctab.c: maketab
${BTOOLSPATH:U.}/maketab > proctab.c
OpenPOWER on IntegriCloud