List Info

Thread: Why not solve the vpath missing directory problem?




Why not solve the vpath missing directory problem?
user name
2006-11-04 06:54:12
> 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.co
m/
>


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




_______________________________________________
Help-make mailing list
Help-makegnu.org
http:
//lists.gnu.org/mailman/listinfo/help-make
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )