svn commit: r288966 - head/share/mk
Simon J. Gerraty
sjg at FreeBSD.org
Wed Oct 7 00:32:35 UTC 2015
Author: sjg
Date: Wed Oct 7 00:32:33 2015
New Revision: 288966
URL: https://svnweb.freebsd.org/changeset/base/288966
Log:
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.
Modified:
head/share/mk/local.autodep.mk
Modified: head/share/mk/local.autodep.mk
==============================================================================
--- head/share/mk/local.autodep.mk Wed Oct 7 00:28:24 2015 (r288965)
+++ head/share/mk/local.autodep.mk Wed Oct 7 00:32:33 2015 (r288966)
@@ -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
More information about the svn-src-all
mailing list