make recursion not exporting

Tripp Lilley tlilley@perspex.com
Wed Apr 16 15:44:00 GMT 1997


This is similar in topic to one of the threads in the archive: namely,
problems with environment variables under Win95.

I've a recursive makefile which exports a number of environment variables
at the top-level, but they don't seem to make it down to any of the lower
levels.

Assuming the following directory tree: tester/sub/sub/sub

And the following makefiles

tester/Makefile:
export
THINGIE="test thingie"

all:
	echo $(THINGIE)
	$(MAKE) -C sub


tester/sub/Makefile:
export
all:
	echo $(THINGIE)
	$(MAKE) -C sub

tester/sub/sub/Makefile:
export
all:
	echo $(THINGIE)
	$(MAKE) -C sub

tester/sub/sub/sub/Makefile:
export
all:
	echo $(THINGIE)


under RedHat Linux 4.1, this chain produces:

echo "this is a test"
this is a test
make -C sub
make[1]: Entering directory `/usr/root/home/tlilley/tester/sub'
echo "this is a test"
this is a test
make -C sub
make[2]: Entering directory `/usr/root/home/tlilley/tester/sub/sub'
echo "this is a test"
this is a test
make -C sub
make[3]: Entering directory `/usr/root/home/tlilley/tester/sub/sub/sub'
echo "this is a test"
this is a test
make[3]: Leaving directory `/usr/root/home/tlilley/tester/sub/sub/sub'
make[2]: Leaving directory `/usr/root/home/tlilley/tester/sub/sub'
make[1]: Leaving directory `/usr/root/home/tlilley/tester/sub'



but under Win95, it produces:

echo "this is a test"
this is a test
/CYGNUS/H-I386~1/BIN/MAKE.EXE -C sub
echo

/CYGNUS/H-I386~1/BIN/MAKE.EXE -C sub
echo

/CYGNUS/H-I386~1/BIN/MAKE.EXE -C sub
echo



Thanks for any help!

- t.


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".



More information about the Cygwin mailing list