From 37e34b32780acf27bd8a082db29003a567faa6e2 Mon Sep 17 00:00:00 2001 From: bdrewery Date: Thu, 3 Dec 2015 22:39:42 +0000 Subject: [PATCH] Revert r288966 as it is redundant and not right. bsd.prog.mk and bsd.lib.mk already make OBJS depend on headers when there is not .OBJDIR/.depend file, which is still true for the initial meta mode builds. If there was something to benefit the meta mode build here then it should be extended to the non-meta mode build as well. Some of the problems here were just DPSRCS being hooked up wrongly, fixed in r291330. The logic itself is flawed as 'buildfiles' is in a different part of the dependency tree than the objects and headers are, so the objects will still be built independent from 'buildfiles'. 'buildfiles' is not ordered in the build before objects. Sponsored by: EMC / Isilon Storage Division --- share/mk/local.autodep.mk | 6 ------ 1 file changed, 6 deletions(-) diff --git a/share/mk/local.autodep.mk b/share/mk/local.autodep.mk index 8ea5ca63d319..8223fec14bc0 100644 --- a/share/mk/local.autodep.mk +++ b/share/mk/local.autodep.mk @@ -14,12 +14,6 @@ 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