aboutsummaryrefslogtreecommitdiff
path: root/build/bootstrap.make
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-02-09 14:19:08 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-02-09 14:19:08 +0200
commitcdd4d1ad5df91ebac5fc117cba57469c83e467a6 (patch)
tree5be9a03e6672f89f54f3e0d6f0e8987bb5359140 /build/bootstrap.make
parentc2a6956f4ccced9cb9bd890295e48d95461de922 (diff)
Make generated files depend on config.h to enforce order
Diffstat (limited to 'build/bootstrap.make')
-rw-r--r--build/bootstrap.make9
1 files changed, 8 insertions, 1 deletions
diff --git a/build/bootstrap.make b/build/bootstrap.make
index cabe15c..cef108e 100644
--- a/build/bootstrap.make
+++ b/build/bootstrap.make
@@ -127,15 +127,22 @@ endif
# To do this we make the object files ($2) depend in order-only on
# generated files ($3).
#
+# Also make generated files depend on config.h so that we don't get
+# annoying noise during dependency auto-generation.
+#
ifeq ($(cxx_id),generic)
define include-dep
-$(if $2,$(eval $2: | $3))
+$(if $2,$(eval $2: | $3)) \
+$(if $(and $3,$(subst $(out_root)/libcommon/common/config.h,,$3)),$(eval \
+$3: $(out_root)/libcommon/common/config.h))
endef
else
define include-dep
+$(if $(and $3,$(subst $(out_root)/libcommon/common/config.h,,$3)),$(eval \
+$3: $(out_root)/libcommon/common/config.h)) \
$(call -include,$1)
endef