delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/06/04/21:12:14

From: dbe AT wgn DOT net ("$Bill Luebkert")
Subject: Re: problem with make in b18
4 Jun 1997 21:12:14 -0700 :
Sender: mail AT cygnus DOT com
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <33954377.30901A3A.cygnus.gnu-win32@wgn.net>
References: <199706031716 DOT SAA00386 AT orpwood DOT demon DOT co DOT uk>
X-Mailer: Mozilla 4.0b5 [en] (Win95; I)
MIME-Version: 1.0
Original-To: Nicholas J Brealey <nick AT orpwood DOT demon DOT co DOT uk>
Original-CC: gnu-win32 AT cygnus DOT com
X-Priority: 3 (Normal)
Original-Sender: owner-gnu-win32 AT cygnus DOT com

Nicholas J Brealey wrote:
> 
> I have come across a strange problem with make with b18.
> 
> I have two make files:
> 
> one.mk contains
> 
> all:
>         @echo CC=$(CC)
>         @make -f two.mk
> 
> two.mk conatins
> 
> all:
>         @echo CC=$(CC)
> 
> With b18 on NT4.0 and Win95 I get the following behaviour:
> 
> $ make -f one.make CC=xx
> CC=xx
> CC=gcc
> 
> but using Gnu make on Solaris or Linux or using Gnu make compiled as a
> native application on NT 4.0 I get:
> $ make -f one.mk
> CC=xx
> make[1]: Entering directory `/home/nick'
> CC=xx
> make[1]: Leaving directory `/home/nick'
> 
> or
> 
> $ make -s -f one.mk CC=xx
> CC=xx
> CC=xx
> 
> Does anyone have any ideas?

Try changing the '@make -f two.mk' to '@make -e -f two.mk'.

Actually '@$(MAKE) -e -f two.mk' would be better, I think. :)

-- 
  ,-/-  __      _  _         $Bill Luebkert
 (_/   /  )    // //       DBE Collectibles
  / ) /--<  o // //      http://www.wgn.net/~dbe/
-/-' /___/_<_</_</_    Email: dbe AT wgn DOT net
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019