[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

From: Mark Galeck (CW)
Subject: behavior on Win depends on whether \ or / is used??
Date: Wed, 9 Dec 2009 17:45:46 -0800

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:

vpath %.s .\foobar0 .\foobar1   

%.o : %.s 
                echo $<


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?  


reply via email to

[Prev in Thread] Current Thread [Next in Thread]