X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; q=dns; s=default; b=HEmAXEoYLD5D5XbE+M1KyKYSjgckHbNfqkadrpXroLL EE478k/vArlUgFbyl6PlFWLKjAHrfnN9JpGPpxkaC+7AC6Ib7X6A9jF6l8zoa6Jj es6pMeDRTHDyl6TxMLFoNjFoBtOc3G2XPtKr6Sy9DiShNJ2kA2hcpOvWAQPd9oHc = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; s=default; bh=M6fJcNbS9DZRTl4ikxgFV319ISg=; b=xeQeHpP8tqsfOdy9M 50uEZk1tt7CDnNtZT0NGucgPhXjq+jXVljPDaoKs/dfIqPBT9GHgJmFNLZfXYBGE ihRb+LHjGeeUo94P0UUxOjmpA/VGWtuPh4x2Quspp7E/RtlhnpBXezG+fxFCAsS8 l3D4GGPyp3EOPTwg5Tku+zHPI8= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-qg0-f47.google.com X-Received: by 10.229.53.133 with SMTP id m5mr40008734qcg.19.1405941810990; Mon, 21 Jul 2014 04:23:30 -0700 (PDT) Message-ID: <53CCF82E.7040407@gmail.com> Date: Mon, 21 Jul 2014 13:23:26 +0200 From: Marco Atzeri User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: cygpath does not work properly in Makefile References: <53CCE0FB DOT 4040401 AT uni-bremen DOT de> In-Reply-To: <53CCE0FB.4040401@uni-bremen.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes On 21/07/2014 11:44, Gökçe Aydos wrote: > Hello, > > I want to convert absolute Unix paths to Windows paths using cygpath in > a Makefile: > > FILES = lib1 ./relative.vhd \ > lib2 /cygdrive/c/Windows/absolute.vhd > > convert_absolute_paths_to_windows_paths: > @echo 1: $(patsubst /%,$(shell cygpath -m /%),$(FILES)) > @echo 2: $(shell cygpath -m $(FILES)) > > The output is: > 1: lib1 ./relative.vhd lib2 C:/cygwin64/cygdrive/c/Windows/absolute.vhd > 2: lib1 relative.vhd lib2 C:/Windows/absolute.vhd > > The first line does not work properly (path prefixed with > cygwin64/cygdrive), but the second one works. What could be the reason > of this behavior? > > Kind Regards, > Gökçe > I presume the make you are using is not cygwin one as the first form is understandable only by cygwin programs Regards Marco -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple