|
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.
|
- Re: $(eval) and shell variables help Anoni
- Re: $(eval) and shell variables help Paul D. Smith
- Re: $(eval) and shell variables help Anoni
- Re: $(eval) and shell variables help Paul D. Smith
