X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: mwoehlke 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: 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> <6 DOT 2 DOT 3 DOT 4 DOT 2 DOT 20060816144036 DOT 09695af0 AT pop DOT nycap DOT rr DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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/