> 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




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

Reply via email to