From: Olivier T. <aka...@gm...> - 2011-08-14 15:31:17
|
Dear all, I'm experiencing trouble using a cross platform makefile. My investigation led me to the bash modification for mingw32. The point is the PWD if not set is set to a default value, but always in the unix path style. I'm wondering if the default pwd set could be set in a cygwin path style depending on -W option as per the pwd command implementation. Here is a scenario to reproduce the behavior: - open a cmd.exe console $ cd c:\windows (arbitrary, just for the example) $ set PWD= $ sh -c "pwd" /c/windows $ set PWD=c:/windows $ sh -c "pwd" c:/windows Here is the real scenario I'm concerned about: Makefile.test: ROOT := $(shell sh -c "pwd") This makefile returns always the path into cygwin format whatever the format of the PWD env var. UNLESS if the PWD var is not set. The problem for me is why is there a no different behavior depending on the format of the PWD when running pwd from a makefile. If you have any information, I'm definitely interested in ! Cheers, Topaz |