delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/07/21/18:07:10

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
From: Chris Faylor <cgf AT cygnus DOT com>
Date: Fri, 21 Jul 2000 18:05:46 -0400
To: "'cygwin AT sourceware DOT cygnus DOT com'" <cygwin AT sourceware DOT cygnus DOT com>
Subject: Re: make --win32 incorrectly handles PATH
Message-ID: <20000721180546.A27919@cygnus.com>
Reply-To: cygwin AT sources DOT redhat DOT com
Mail-Followup-To: "'cygwin AT sourceware DOT cygnus DOT com'" <cygwin AT sourceware DOT cygnus DOT com>
References: <50028CAE26D1D3118C7F00A0CC50D6252D1E56 AT EMWARESERVER>
Mime-Version: 1.0
User-Agent: Mutt/1.2i
In-Reply-To: <50028CAE26D1D3118C7F00A0CC50D6252D1E56@EMWARESERVER>; from scarter@emware.com on Fri, Jul 21, 2000 at 03:48:29PM -0600

On Fri, Jul 21, 2000 at 03:48:29PM -0600, Scott Carter wrote:
>On Friday, July 21, 2000 12:12 AM, Lassi A. Tuura wrote 
>>You could try something like
>> export PATH := $(PATH):$(EXTRA_PATH)
>>in your makefile.
>>
>>I would expect that to do the right thing in unixy mode -- not having
>>the extra space and exporting the changed value to a subprocesses. 
>>Whether that will actually make it to %PATH% under Win32 I have 
>>no idea, and unfortunately can't test right now...
>
>
>I haven't put much into testing the unix mode cuz we don't use it. We
>selected the cygwin port of gnu make specifically because we wanted the
>increased Win/DOS compatibility we get in win32 mode. But since you
>mentioned it, I gave it a quick look-see.
>
>Following your suggestion, in both unix and win32 modes I found that the
>form
>    PATH +=xxx   #(no space between = and x.)
>produces the extraneous space character I spoke of. But the form
>    PATH := $(PATH):xxx  #(with space after =.)
>does NOT produce the extraneous space. Interesting. That's a viable
>workaround for one of the problems.
>
>I had tried export before, but tried it again now, just to verify. In unix
>mode, it's not needed for PATH, and seems to have no effect on Path. In
>win32 mode, using export (on PATH or Path) doesn't fix the problem.

I've finally taken the time to look at the make documentation, which is
an exercise that I would suggest for anyone who is trying to figure out
how a program works.

The usage

VAR +=something

is SUPPOSED TO ADD A SPACE TO VAR.  So, make is working as documented
in this respect.

cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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