[Top][All Lists]

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

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

From: Mark Galeck (CW)
Subject: RE: behavior on Win depends on whether \ or / is used??
Date: Tue, 15 Dec 2009 10:25:08 -0800

OK, I understand now Eli's reasons of assigning "failure" and "success".  Thank 

So now your question to Paul is this, let me rephrase myself:

vpath %.s foobar0 foobar1

%.o: %.s
                echo $<

(and as always, foobar.s only in foobar1, not in foobar0).  

Here, the current behavior of make is 

C:\tmp>make foobar.o
echo foobar0/foobar.s

How can this possibly be "correct"??  GNU make manual only states that for the 
rule with no commands or prerequisites, make "imagines" the target has been 
updated, even if it does not exist.  People are using this property, to prevent 
failure if the file does not exist, for example, for auto-dependencies in the 
well-known website

This is not going to work, if make still found foobar0/foobar.s after  the user 
deleting it.  


reply via email to

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