aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorSimon J. Gerraty <sjg@FreeBSD.org>2015-10-07 00:32:33 +0000
committerSimon J. Gerraty <sjg@FreeBSD.org>2015-10-07 00:32:33 +0000
commitf76824ed310edf28ed9733391f74f6a7452fe9a6 (patch)
treef8fe59be293b1a0a2d4372f204d12dab6142bdde /share
parent857b8cc71d3300dad498376558e01b324982f14c (diff)
downloadsrc-f76824ed310edf28ed9733391f74f6a7452fe9a6.tar.gz
src-f76824ed310edf28ed9733391f74f6a7452fe9a6.zip
To help bootstrap new local depends,
if SRCS contains *.h for which there are targets, make buildfiles depend on them - so they get generated early.
Notes
Notes: svn path=/head/; revision=288966
Diffstat (limited to 'share')
-rw-r--r--share/mk/local.autodep.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/share/mk/local.autodep.mk b/share/mk/local.autodep.mk
index 8223fec14bc0..8ea5ca63d319 100644
--- a/share/mk/local.autodep.mk
+++ b/share/mk/local.autodep.mk
@@ -14,6 +14,12 @@ LDFLAGS+= ${LDFLAGS_LAST}
CLEANFILES+= .depend
+.for h in ${SRCS:M*.h}
+.if target($h)
+buildfiles: $h
+.endif
+.endfor
+
# handy for debugging
.SUFFIXES: .S .c .cc .cpp .cpp-out