[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
exported makefiles not exported to $(shell ...)
From: |
gk |
Subject: |
exported makefiles not exported to $(shell ...) |
Date: |
Sat, 15 Feb 2003 21:30:28 -0800 |
It is documented that exported makefiles are exported to 'sub-makes'
I was expecting that export directive also exports values to $(shell ... )
but apparently this is not the case.
Is by accident or design?
# Makefile
export FOO1:=1
result:=$(shell echo $$FOO1)
$(warning FOO1=$(result))
result:=$(shell export FOO2=2;echo $$FOO2)
$(warning FOO2=$(result))
foo:;
#eof
address@hidden junk]$ make
Makefile:5: FOO1=
Makefile:8: FOO2=2
make: `foo' is up to date.
- Greg Keraunen
http://www.xmake.org
http://www.xmlmake.com
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- exported makefiles not exported to $(shell ...),
gk <=