delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/04/16/19:35:19

From: tlilley AT perspex DOT com (Tripp Lilley)
Subject: make recursion not exporting
16 Apr 1997 19:35:19 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <Pine.LNX.3.95.970416105953.25446D-100000.cygnus.gnu-win32@mail.perspex.com>
Mime-Version: 1.0
Original-To: gnu-win32 AT cygnus DOT com
Original-Sender: owner-gnu-win32 AT cygnus DOT com

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 AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019