help-make
[Top][All Lists]
Advanced

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

Re: Is there logical operations in makefile


From: Paul Smith
Subject: Re: Is there logical operations in makefile
Date: Thu, 04 Sep 2008 13:39:42 -0400

On Thu, 2008-09-04 at 12:01 -0500, Peng Yu wrote:
> I used the following to test if the the goal is 'all'. Now, I want to
> test whether it is either 'all' or 'o'. I'm wondering how to do it in
> makefile.
> 
> ifeq ($(MAKECMDGOALS), all)

ifneq (,$(filter all o,$(MAKECMDGOALS)))

There are also $(and ...) and $(or ...) for more complicated things.
See the GNU make manual.





reply via email to

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