delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/08/16/20:37:52

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: mwoehlke <mwoehlke AT tibco DOT com>
Subject: Re: change in behavior of make from 3.80 to 3.81
Date: Wed, 16 Aug 2006 19:37:11 -0500
Lines: 32
Message-ID: <ec0dno$u12$1@sea.gmane.org>
References: <6 DOT 2 DOT 3 DOT 4 DOT 2 DOT 20060815151104 DOT 0b40e260 AT pop DOT nycap DOT rr DOT com> <01b901c6c116$21259430$a501a8c0 AT CAM DOT ARTIMI DOT COM> <6 DOT 2 DOT 3 DOT 4 DOT 2 DOT 20060816091525 DOT 0ab90af0 AT pop DOT nycap DOT rr DOT com> <20060816144110 DOT GX20467 AT calimero DOT vinschen DOT de> <6 DOT 2 DOT 3 DOT 4 DOT 2 DOT 20060816111421 DOT 0b446b60 AT pop DOT nycap DOT rr DOT com> <20060816155054 DOT GY20467 AT calimero DOT vinschen DOT de> <Pine DOT GSO DOT 4 DOT 63 DOT 0608161418370 DOT 9095 AT access1 DOT cims DOT nyu DOT edu> <6 DOT 2 DOT 3 DOT 4 DOT 2 DOT 20060816144036 DOT 09695af0 AT pop DOT nycap DOT rr DOT com> <Pine DOT GSO DOT 4 DOT 63 DOT 0608161543520 DOT 14156 AT access1 DOT cims DOT nyu DOT edu> <ebvvri$mqd$2 AT sea DOT gmane DOT org> <Pine DOT GSO DOT 4 DOT 63 DOT 0608162016310 DOT 14156 AT access1 DOT cims DOT nyu DOT edu>
Mime-Version: 1.0
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.5) Gecko/20060719 Thunderbird/1.5.0.5 Mnenhy/0.7.4.0
In-Reply-To: <Pine.GSO.4.63.0608162016310.14156@access1.cims.nyu.edu>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Igor Peshansky wrote:
> On Wed, 16 Aug 2006, mwoehlke wrote:
> 
>> Igor Peshansky wrote:
>>> Alternatively, you can try to implement a $(cygpath ...) function in make
>>> and submit *that* to the upstream maintainers.  That way, the Cygwin make
>>> will not have to invoke a separate process to convert the paths that it
>>> (as a program linked to cygwin1.dll) already knows how to do.
>> I'd like to point out that such a patch would be all of about five lines
>> of "code"... (And for the record, I've written both new make functions
>> AND my own version of cygpath, so I know what I'm talking about.)
> 
> Properly written, perhaps about 10.  But what's a constant factor between
> friends? ;-)

Ah, I was thinking about the version of cygpath I wrote, that only does 
absolute conversions, and thus is less code. :-) Also see below.

>> Except note you would almost certainly want $(cygpathu) and $(cygpathw).
> 
> Umm, actually I was thinking of $(cygpath) with 2 parameters -- the type
> of conversion, and the list of paths.

Oh, right. I think I was thinking about it taking a list of files, but 
that is of course what $(foreach) is for. Your way is more flexible but 
requires more coding (because then you have to think about how to handle 
the 'what type of conversion' argument). So it is 10 lines of code 
instead of 5... and you're still just *copying* the source of cygpath.

-- 
Matthew
vIMprove your life! Now on version 7!


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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