Running into a problem with spaces in filenames... environment is WinNT running latest cygwin (make version is 3.77).
 
Here's the situation:
 
I have the environment variable INCLUDE, defined something like
 
INCLUDE=c:\Program Files\Microsoft Developer Studio\some directory;c:\ProgramFiles\Microsoft Developer Studio\some other directory;...
 
I would like to convert this into appropriate -I statements for use with gcc....
 
Converting each path into cygwin/gcc appropriate values is not difficult... I end up with something like
INCLUDE=//c/Program\ Files\Microsoft\ Developer\ Studio/some\ directory://c/Program\ Files/ Microsoft\ Developer\ Studio/some\ other\ directory
 
I would then like to translate this into corresponding -I statements.
 
So, given the above I figured I'd just convert the : to spaces and let $(foreach ....) do its work.  The problem is that it doesn't seem to recognize the '\ ' as an escaped space as the rest of the cygwin apps do.  Even if I quote each path (either single or double), foreach still tokenizes on the embeded spaces.
 
So the question is.... how does make handle spaces in file names? If it does, what does it expect for an escape squence?

Reply via email to