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