[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GNU make help on patsubst
From: |
Chad Loder |
Subject: |
Re: GNU make help on patsubst |
Date: |
Mon, 06 Aug 2001 17:17:40 -0700 |
If you're using Cygwin, you might try something
like the this (it's worked well for me):
# or whatever uname -s gives you on your system
ifeq ("$(shell uname -s)","CYGWIN_NT-5.0")
nativepath = $(foreach x,$(1),'$(shell cygpath -wa $(x))')
else
nativepath = $(foreach x,$(1),$(x))
endif
And then you can use $(call nativepath,$@) and similar
things in your commands.
Chad Loder
At Monday 8/6/2001 07:31 PM -0400, you wrote:
Hi, there:
Is there any way to replace / with \ in D:/myWorkingDir/src/test on Windows
NT?
I have tried $(patsubst /,\, D:/myWorkingDir/src/test), but it does not
work.
We are using GNU make 3.79.1 on Windows NT with SP 6.
Your help is highly appreciated.
Jerry
_______________________________________________
Help-make mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/help-make