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.
This commit is contained in:
Simon J. Gerraty 2015-10-07 00:32:33 +00:00
parent 857b8cc71d
commit f76824ed31
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=288966

View file

@ -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