cygpath does not work properly in Makefile
Gökçe Aydos
goekce@uni-bremen.de
Mon Jul 21 09:44:00 GMT 2014
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygpath_test.mk
Type: text/x-makefile
Size: 215 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20140721/8926ecf2/attachment.bin>
-------------- next part --------------
--
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
More information about the Cygwin
mailing list