delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/12/09/12:06:44

From: JONCKHEERE AT d0tng DOT fnal DOT gov
Subject: RE: problem with export in GNU make v3.75
9 Dec 1997 12:06:44 -0800 :
Message-ID: <971209114338.268013db.cygnus.gnu-win32@d0tng.fnal.gov>
To: batanov AT ascinc DOT com
Cc: GNU-Win32 AT cygnus DOT com

Get Sergey's latest coolview binaries from http://www.lexa.ru/sos/. unzip and 
untar. Copy cygwin.dll to *both* places that it exists in your cygwin directory 
tree.

That has fixed this problem for us.

Alan
==========================================================================

Dear all,

I have a problem with exporting variables in makefile using GNU make v3.75 
distributed in Cygnus's gnu-win32-b18 package. It simply does not work. Here is 
an example with the top-level makefile calling make on subordinate makefile:

file: Makefile:
-------------------
MYVAR=alex
export MYVAR

trg1:
	echo MAKELEVEL is $(MAKELEVEL)
	echo MYVAR is $(MYVAR)
	$(MAKE) -f Makefile.sub
	echo MAKELEVEL is $(MAKELEVEL)
	echo MYVAR is $(MYVAR)

file: Makefile.sub:
-------------------------
trg1:
	echo MAKELEVEL is $(MAKELEVEL)
	echo MYVAR is $(MYVAR)

output of make -f Makefile:
--------------------------------------
bash$ make
echo MAKELEVEL is 0
MAKELEVEL is 0
echo MYVAR is alex
MYVAR is alex
make -f Makefile.sub
echo MAKELEVEL is 0
MAKELEVEL is 0
echo MYVAR is
MYVAR is
echo MAKELEVEL is 0
MAKELEVEL is 0
echo MYVAR is alex
MYVAR is alex

Note that MAKELEVEL environment variable does not work as advertised either.

I tried running GNU make v3.73 obtained from elsewhere on the net, and it worked 
fine!

Any ideas how to overcome this problem?

Thanks,

Alex Batanov
Software Engineer
Alternative System Concepts, Inc.
22 Haverhill Rd
Windham, NH 03087-0128
(603) 437-2234
(603) 437-2722 fax
batanov AT ascinc DOT com

P.S. Please cc your responses to my email address.  


-
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".

-
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