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. -- ------------------------------------------------------------------------------- Paul D. Smith <[email protected]> Find some GNU make tips at: http://www.gnu.org http://make.mad-scientist.net "Please remain calm...I may be mad, but I am a professional." --Mad Scientist _______________________________________________ Help-make mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-make
