| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com> |
| List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
| List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs> |
| Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
| Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
| Message-ID: | <17B78BDF120BD411B70100500422FC6309E012@IIS000> |
| From: | Bernard Dautrevaux <Dautrevaux AT microprocess DOT com> |
| To: | "'Christopher Jones'" <cbjones AT nortelnetworks DOT com>, |
| cygwin AT sourceware DOT cygnus DOT 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) |
| X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id IAA21788 |
-----Original Message-----
From: Christopher Jones [mailto:cbjones AT nortelnetworks DOT com]
Sent: Tuesday, April 18, 2000 10:49 PM
To: cygwin AT sourceware DOT cygnus DOT 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 AT microprocess DOT com
b DOT dautrevaux AT usa DOT net
--------------------------------------------
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |