In a makefile, I want to use an environment variable ${PROJECT_SOURCE} with value /c/foo.
But when I set my Windows 10 environment variable through control panel to /c/foo, the result is C:\foo when I execute my make command in Mingw32.
I need exactly /c/foo. I tried to escape with ^ or % when setting the variable in the control panel, but nothing works : it's stil C:\foo in Mingw32 or windows powershell
I'm using a portable version of Make 3.82.90
example of command :
dos2unix:
find ${PROJECT_SOURCE}/www/project/ -type f -name *.php | xargs dos2unix /
- How do you set your Windows environment variable. There is more than one method.
- Where do you see that "the result is C:\foo".
- Where did you try what you tried.
- How did you install make, and which version.
- How are you using make.
– sancho.s ReinstateMonicaCellio Aug 26 '20 at 10:01