On Fri, 2010-06-11 at 11:29 +0300, Oleksandr Gavenko wrote:
> Just do:
> 
>    $ mkdir test
>    $ cat <<EOF >test/test.sh
> #!/bin/sh
> echo I am HERE
> EOF
>    $ cat <<EOF >Makefile
> export PATH := test:$(PATH)
> $(shell test.sh)
> all:
>       test.sh
> EOF

Variables exported by make are not passed to invocations of $(shell ...)

Making this work is not trivial, because it's simple to get into
situations where variable expansion is infinitely recursive.

See: https://savannah.gnu.org/bugs/?10593


-- 
-------------------------------------------------------------------------------
 Paul D. Smith <[email protected]>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.mad-scientist.net
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to