behavior on Win depends on whether \ or / is used??

"Mark Galeck (CW)" <[email protected]>
Newsgroups gmane.comp.gnu.make.windows
Message-ID <49DA8B716852DE4CA0B749102D55CC7A967B36A112@HQ-EXCH-6.corp.brocade.com>
Hello,  this is a Windows question,



I have 2 subdirectories foobar0 and foobar1, and only in foobar1 there is a file foobar.s  . There is no file foobar.o .



The makefile is:





SHELL=cmd.exe



vpath %.s .\foobar0 .\foobar1



%.o : %.s

            echo $<



foobar0\foobar.s:;





This behaves as expected:



C:\tmp>make foobar.o

echo .\foobar1/foobar.s





However, if I change all the backslashes to forward-slashes, then I get:





C:\tmp>make foobar.o

make: *** No rule to make target `foobar.s', needed by `foobar.o'.  Stop.



(this is just a small example, what I observe is that forward slash in directories, misbehaves with vpath on Windows)



Is this a bug in Windows make, or in my head?



Mark

_______________________________________________
Make-w32 mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/make-w32
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.