help-make
[Top][All Lists]
Advanced

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

Re: Implement Check on Input Values


From: David Boyce
Subject: Re: Implement Check on Input Values
Date: Mon, 8 Aug 2011 14:20:25 -0400

On Mon, Aug 8, 2011 at 1:19 PM, Stephan Beal <address@hidden> 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



reply via email to

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