%% Ernest <[EMAIL PROTECTED]> writes:

  e> Actually, I think I found a way today to do this with $(shell) so I
  e> don't have to re-invoke make (which wouldn't work since the
  e> sub-make wouldn't have all the currently defined vars, and there
  e> are a LOT of them).

No, I guess I wasn't clear: my comment meant you'd have to run make
twice; the first time with a target that build the included makefiles,
like this:

    make makefiles

where the "makefiles" target's command script would generate the
makefiles (maybe recursively).  All the variables would be available
here: it's the same makefile.  Then you'd re-run the command without a
target (or a different target) to do the actual build.

  e> Necessity is the mother of invention, right?  8^)  Whew!

I guess if you don't mind the performance impact of invoking a shell
script to rebuild every makefile every time you invoke the build, it's
OK :-).

-- 
-------------------------------------------------------------------------------
 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
_______________________________________________
help-gnu-utils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gnu-utils

Reply via email to