I am using the following bash function in cygwin .bashrc (to return windows styed paths)
pwd() {
cygpath -m "`command pwd`"
}
export pwd
So when I run pwd from bash, I get the result in windows style path. However, if I use pwd
in Makefile, then I get cygwin style results
run:
echo `pwd`
Can anyone please suggest me on how to make it work in the Makefile.
P.S: I can't use cygpath, this sample problem is just depicting one of the problem from my larger problem set.