summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-11-09 20:28:14 +0100
committerMichael Stahl <mstahl@redhat.com>2013-11-10 00:03:22 +0100
commit20193bcc93660a1510a7cd5ab8d0897e55ee7546 (patch)
tree7d0a5a9f587c6556dd0dad018872553b617a5ae4 /solenv
parent0c29bcec708b4a0c94ea2d52deb4a188f1b32cd5 (diff)
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
Diffstat (limited to 'solenv')
-rw-r--r--solenv/gbuild/SdiTarget.mk5
1 files changed, 4 insertions, 1 deletions
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,%)