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
This commit is contained in:
Michael Stahl 2013-11-09 20:28:14 +01:00
parent 0c29bcec70
commit 20193bcc93

View File

@ -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,%)