help-make
[Top][All Lists]
Advanced

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

Re: how to code if/then/else in makefile


From: Paul D. Smith
Subject: Re: how to code if/then/else in makefile
Date: Wed, 10 Nov 2004 13:46:47 -0500

I'm not quite sure I follow your question, but it's trivial to test an
empty string:

    ifeq (,$(VAR))
      $(warning Variable VAR is empty)
    else
      $(warning Variable VAR is not empty)
    endif

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist




reply via email to

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