New Cygwin Net Release (make error)

Bernard Dautrevaux Dautrevaux@microprocess.com
Wed Apr 19 06:37:00 GMT 2000


-----Original Message-----
From: Christopher Jones [ mailto:cbjones@nortelnetworks.com ]
Sent: Tuesday, April 18, 2000 10:49 PM
To: cygwin@sourceware.cygnus.com
Subject: RE: New Cygwin Net Release (make error)



Okay, I'm sure of what caused this now.  The Makefile look something like
this. 

#--begin Makefile--- 
SOMEVAR=$(ANOTHERVAR)/etc 
include $(DEVDIR)/Makefile.mstr 
#--end Makefile--- 

DEVDIR is defined in the environment.  ANOTHERVAR however is defined in the
included makefile.  I thought make was supposed to try to do full expansion
on a second read of the makefile?  Seems to have worked before.  

In fact make is suppose to expand SOMEVAR only when it sees $(SOMEVAR), so
yo u only have to be sure that ANOTHERVAR is set before trying to use
SOMEVAR. However be careful: if SOMEVAR is used in a dependency (either
target or dependant part), it will be expanded as soon as it is seen.

HTH   

    Bernard, 

-------------------------------------------
Bernard Dautrevaux
Microprocess Ingéniérie
97 bis, rue de Colombes
92400 COURBEVOIE
FRANCE
Tel:    +33 (0) 1 47 68 80 80
Fax:    +33 (0) 1 47 88 97 85
e-mail:dautrevaux@microprocess.com
              b.dautrevaux@usa.net
-------------------------------------------- 


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list