delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/07/19/22:44:44

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <006d01c110c5$db494b60$6401a8c0@athlon>
Reply-To: "Erwin Kalvelagen" <erwin AT gams DOT com>
From: "Erwin Kalvelagen" <erwin DOT kalvelagen AT verizon DOT net>
To: <cygwin AT cygwin DOT com>
References: <003b01c110b5$5df5cf40$6401a8c0 AT athlon>
Subject: Re: gmake MAKE_MODE problem
Date: Thu, 19 Jul 2001 22:44:10 -0400
Organization: GAMS Development Corp
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200

Pfff, found it:

had to unset a number of environment variables that were
sneakily set by gmake:

set TERM=
set SHELL=
set MAKEFLAGS=
set MFLAGS=




----- Original Message ----- 
From: "Erwin Kalvelagen" <erwin DOT kalvelagen AT verizon DOT net>
To: <cygwin AT cygwin DOT com>
Sent: Thursday, July 19, 2001 8:46 PM
Subject: gmake MAKE_MODE problem


> 
> 
> Hi:
> 
> I have a problem with gmake related to the MAKE_MODE environment variable.
> We have a large gmake system that is using and relies on MAKE_MODE=UNIX.
> A new subsystem calls gmake from this but it wants MAKE_MODE=DOS so
> that no backslashes are lost. Basically what we do is:
> 
> Makefile:
> ---------------------------------------------------------------------------
> # assume this makefile is called with MAKE_MODE=unix
> 
> SHELL=/bin/sh
> 
> all:
>  echo $(MAKE_MODE)
>  ./batch.bat
> ----------------------------------------------------------------------------
> 
> Batch.bat:
> ----------------------------------------------------------------------------
> set MAKE_MODE=dos
> gmake -f Makefile2
> ----------------------------------------------------------------------------
> 
> Makefile2:
> ----------------------------------------------------------------------------
> all:
>  command.com /c echo $(MAKE_MODE)
>  command.com /c echo c:\windows
> ----------------------------------------------------------------------------
> 
> The output of running gmake shows:
> 
> 
> F:\visbuild\problem>gmake
> echo unix
> unix
> ./batch.bat
> 
> F:\visbuild\problem>
> F:\visbuild\problem>set MAKE_MODE=dos
> 
> F:\visbuild\problem>gmake -f Makefile2
> command.com /c echo dos
> dos
> command.com /c echo c:\windows
> c:windows     <-------------------- !!!!!!!!!!!
> 
> F:\visbuild\problem>
> 
> 
> I.e. although MAKE_MODE is set to DOS the second invocation of gmake 
> does not treat a backslash properly. 
> 
> 
> Interestingly if I call BATCH.BAT directly from the command line I get:
> 
> F:\visbuild\problem>batch
> F:\visbuild\problem>set MAKE_MODE=dos
> 
> F:\visbuild\problem>gmake -f Makefile2
> command.com /c echo dos
> dos
> command.com /c echo c:\windows
> c:\windows  <-------------------- !!!!!!!!!!!
> 
> F:\visbuild\problem>
> 
> 
> Is there another environment variable that the second invocation inherits
> from the first that needs to be reset to make sure that a \ is not considered
> as an escape character?
> 
> 
> Thanks, Erwin
> 
> 
> 
> 
> 
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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