Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sourceware.cygnus.com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin@sourceware.cygnus.com>
List-Help: <mailto:cygwin-help@sourceware.cygnus.com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner@sourceware.cygnus.com
Delivered-To: mailing list cygwin@sourceware.cygnus.com
Message-ID: <17B78BDF120BD411B70100500422FC6309E012@IIS000>
From: Bernard Dautrevaux <Dautrevaux@microprocess.com>
To: "'Christopher Jones'" <cbjones@nortelnetworks.com>,
        cygwin@sourceware.cygnus.com
Subject: RE: New Cygwin Net Release (make error)
Date: Wed, 19 Apr 2000 15:35:00 +0200
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id IAA21788

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

