This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
RE: New Cygwin Net Release (make error)
- To: 'Christopher Jones' <cbjones at nortelnetworks dot com>, cygwin at sourceware dot cygnus dot com
- Subject: RE: New Cygwin Net Release (make error)
- From: Bernard Dautrevaux <Dautrevaux at microprocess dot com>
- Date: Wed, 19 Apr 2000 15:35:00 +0200
-----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