sub/bar.h: sub ;
That's enough to force make to recheck whether the timestamp on the
target has changed
Ah ha! Thanks, that does the trick.
FWIW, I have a line like this:
%.d: | sub
$(CXX) $(CXXFLAGS) -MP -MG -MT "$@" -MT "$*.o" -MM "$*.cc" > "$@"
...which in my mind, the '| sub' order-only pre-requisite should have
also delayed the timestamp check of the other pre-requisites (sub/
bar.h) until after 'sub' is built. It does successfully delay
building them after all, and it seems intuitive the timestamp check
(and decision whether to build) should happen right before it's
actually going to build them. (maybe there's a good reason why that
can't be done, just pointing out why it tripped me up)
Thanks again!
-Ethan
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make