help-make
[Top][All Lists]
Advanced

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

Re: Why not solve the vpath missing directory problem?


From: Bryan Ischo
Subject: Re: Why not solve the vpath missing directory problem?
Date: Sat, 4 Nov 2006 01:54:12 -0500 (EST)
User-agent: SquirrelMail/1.4.8-1.fc5

> Hi Bryan,
>
>> vpath src:$(shell [ -d dir_to_use ] && echo dir_to_use)
>
> It would be slightly better to use:
>
> vpath src: $(wildcard dir_to_use)
>
> --
> Dave Hylands
> Vancouver, BC, Canada
> http://www.DaveHylands.com/
>


Thank you, that is a great suggestion.  It is a much more elegant
solution.  It makes my point - that the behavior of only including
directories in vpath at the time that the Makefile is evaluated is best
left up to the makefile implementation itself rather than being an
intrinsic behavior of the vpath command - even better.

Thanks again, and best wishes,
Bryan






reply via email to

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