help-make
[Top][All Lists]
Advanced

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

Re: How to test if a variable is something or empty?


From: Philip Guenther
Subject: Re: How to test if a variable is something or empty?
Date: Fri, 24 Oct 2008 21:46:27 -0700

On Fri, Oct 24, 2008 at 5:00 PM, Peng Yu <address@hidden> wrote:
...
> No. I'm not asking how to make clean.

I didn't say you were.

> I just want to know how to combine the two if statements.

Which is probably the Wrong Thing, because it'll fail to include
dependencies if you say, for instance "make main".


> The commands inside each if statements
> can be anything, but they are the same.

If you *really* think testing just for "all" and "" is the right then,
then read up in the info pages on $(if), $(or), and $(and) and think
about how to make them return the empty string based on the cases you
want to match.


Philip Guenther




reply via email to

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