On Mon, Aug 8, 2011 at 1:19 PM, Stephan Beal <[email protected]> wrote:
>> ifeq (1,$(words $(wildcard $(WORK_DIR)))

The wildcard function is defined to return a null string iff the named
file doesn't exist, thus:

$(if $(wildcard $(WORK_DIR)),,$(error make: $(WORK_DIR): no such directory))

would suffice as a test. You could just as easily do this as an
if/endif pair if preferred.

-David Boyce

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

Reply via email to