%% Lutz Vieweg <[EMAIL PROTECTED]> writes:

  lv> My problem is that I always used dependencies like this:

  lv> foo.cxx: foo.h sub/bar.h

  lv> .SECONDARY: foo.cxx

  lv> to tell make that something that depends on foo.cxx needs to be
  lv> remade whenever foo.h or sub/bar.h changes.

  lv> Of course, foo.cxx should never be changed by any command make
  lv> invokes.

Hmm.

I don't believe that was ever an intended side-effect of the .SECONDARY
behavior.

  lv> isn't there any way to tell make "foo.cxx depends on foo.h, but
  lv> foo.cxx won't change because of it, only other files that depend
  lv> on foo.cxx need to be remade"?

No; this is sometimes called "transitive dependencies", and some build
tools have them, but make doesn't support them.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <[EMAIL PROTECTED]>          Find some GNU make tips at:
 http://www.gnu.org                      http://www.paulandlesley.org/gmake/
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist

_______________________________________________
Bug-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-make

Reply via email to