help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

$(eval) and shell variables help


From: Anoni
Subject: $(eval) and shell variables help
Date: Wed, 20 Nov 2002 12:24:22 -0800

Hi,
 
How do you get the value of a shell variable (e.g, exit number) in an $(eval) context? 
For, example,
 
define TEMPLATE
 
    $(1)     : blah blah...; \
            @some_command; \
               exit_status=...; \
               if [ ... != 0 ]; then \
                     exit 1; \
                fi; \
            touch $$@;
endef
 
$(foreach t,$(targets),$(eval $(call TEMPLATE,$(t))))
 
 
Thanks.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]