help-make
[Top][All Lists]
Advanced

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

Re: ifeq and friends directives


From: Oleksandr Gavenko
Subject: Re: ifeq and friends directives
Date: Fri, 12 Aug 2011 15:23:10 +0300
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20110624 Thunderbird/5.0

11.08.2011 7:44, Paul Smith пишет:
On Wed, 2011-08-10 at 23:17 -0400, Jeffrey Walton wrote:
Hi All,

Is it possible? Or do I need to keep the test limited to one expression?

// Extraneous text after `ifeq' directive
ifeq ($(MAKECMDGOALS),codec) || ($(MAKECMDGOALS),codecs)
   WANT_DEBUG := 1
endif

// Extraneous text after `ifeq' directive
ifeq ($(MAKECMDGOALS),codec) || ifeq ($(MAKECMDGOALS),codecs)
   WANT_DEBUG := 1
endif

If you have a sufficiently modern GNU make (3.81 or better) you can use
the $(and ...) and $(or ...) functions.  See the manual.

However, for the particular situation you show above, you can use
$(filter ...) just as easily.

For another techniques refer to "GNU Make Standard Library"

http://gmsl.sourceforge.net/

--
С уважением, Александр Гавенко.



reply via email to

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