From 20193bcc93660a1510a7cd5ab8d0897e55ee7546 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Sat, 9 Nov 2013 20:28:14 +0100 Subject: [PATCH] gbuild: SdiTarget: avoid more spurious rebuilds... ... because the .hxx file only occurs as a target in .d files of objects, the rule for it will not trigger in a build from scratch and it will be older than the SdiTarget itself and will be touched on the next incremental build. Ensure that it's not older than the SdiTarget. Change-Id: I49504814ff62efb22d1f10b37e3bec2ea841bfc9 --- solenv/gbuild/SdiTarget.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/solenv/gbuild/SdiTarget.mk b/solenv/gbuild/SdiTarget.mk index a877695a45b0..d056aa6fea6e 100644 --- a/solenv/gbuild/SdiTarget.mk +++ b/solenv/gbuild/SdiTarget.mk @@ -36,7 +36,10 @@ $(call gb_SdiTarget_get_target,%) : $(SRCDIR)/%.sdi $(gb_SdiTarget_SVIDLDEPS) -fx$(EXPORTS) \ -fm$@ \ $(if $(gb_FULLDEPS),-fM$(call gb_SdiTarget_get_dep_target,$*)) \ - $<) + $< \ + && touch $@.hxx) +# touch the hxx file so it's newer than the target - the .hxx only occurs in +# generated .d files, so it's not a target yet when building from scratch! # rule necessary to rebuild cxx files that include the header $(call gb_SdiTarget_get_target,%.hxx) : $(call gb_SdiTarget_get_target,%)