help-make
[Top][All Lists]
Advanced

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

RE: full VPATH search followed even if prerequisites found in the first


From: Mark Galeck (CW)
Subject: RE: full VPATH search followed even if prerequisites found in the first entry
Date: Wed, 11 Nov 2009 15:07:01 -0800

Here is a boiled down example: 

 

Make a subdirectory foobar in your current directory, and put a file foo in there. 

 

The makefile is

 

 

VPATH = \

foobar \

foobar \

foobar \

(… repeated 1000 times)

 

foo: 

 

 

 

Now, if I type

>make foo

 

On my computer it takes 12 seconds!  With VPATH reduced to one foobar, make foo is immediate. 

 

I tried vpath, same problem.  Can someone tell me, how to prevent make from going through all those directorys when it already found what it is looking for?? 

 

>The GNU make manual says:  “ In the VPATH variable, directory names are separated by colons or blanks. The order in which directories are listed is the order followed by make in its search.”

 

This does not work for me: 

 

 

Mark

 

 


reply via email to

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