[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: $@ documentation
From: |
Paul D. Smith |
Subject: |
Re: $@ documentation |
Date: |
Sat, 12 Oct 2002 13:02:20 -0400 |
%% Henning Makholm <address@hidden> writes:
Thanks Henning.
hm> If your $(BINFILES) live in different directories, I dont think
hm> there's any way to get around writing separate rules for each
hm> directory (save for some kind of clever abuse of the new $(eval
hm> ...) function in 3.80
Not abuse; this kind of thing is exactly why $(eval ...) exists :).
It's basically a way to perform operations within make itself that would
otherwise require recursion, either explicit or implicit (via the
auto-re-exec feature).
It's also a prerequisite (perhaps...) to integrating Guile as an
extension language for make; one potential way for this to work is to
create a $(guile ...) function; then you might do something like:
$(eval $(guile (some guile code here...)))
where the Guile code returned some makefile content. Or something. How
this might work in real life needs more thought :).
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> 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