[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gmake: how to avoid $$@ usage?
From: |
Paul D. Smith |
Subject: |
Re: gmake: how to avoid $$@ usage? |
Date: |
02 Mar 2005 17:53:49 -0500 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
%% Ernest <ecrvichNOSPAM@NOSPAMfootbag.org> 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 <psmith@gnu.org> 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