This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: New Cygwin Net Release (make error)

-----Original Message-----
From: Christopher Jones []
Sent: Tuesday, April 18, 2000 10:49 PM
Subject: RE: New Cygwin Net Release (make error)

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

#--begin Makefile--- 
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.



Bernard Dautrevaux
Microprocess Ingéniérie
97 bis, rue de Colombes
Tel:    +33 (0) 1 47 68 80 80
Fax:    +33 (0) 1 47 88 97 85

Want to unsubscribe from this list?
Send a message to

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]