%% "Ian Dunbar" <[EMAIL PROTECTED]> writes:

  id> Ok, but I am surprised you don't you see any problem (bug) with
  id> the current way?

Not really.  The times where it makes any difference are very few, and
the performance penalty that would be incurred to re-invoke make after
each makefile was recreated could be quite large.

  id> I don't really understand why does adding the order
  id> only-prerequsite like this solve the problem, if make truly does
  id> not re-read the makefiles between remaking them?

Heh.  You don't believe me? :).  You can try adding $(warning ...) lines
to your various makefiles and seeing when they get printed, if you
like.  Also, you can use make's debugging mode (-d) to see more info.

  id> subsub.mk: | sub.mk
  id> include subsub.mk

This has nothing to do with the order-only prerequisite; if you removed
it you'd see the same behavior.

This is because you've declared the target subsub.mk as an empty
target; once you do that it's no longer unknown to make.  See the GNU
make manual section on empty target files.

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


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

Reply via email to