help-make
[Top][All Lists]
Advanced

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

Re: switch or elseif statement in make


From: Paul D. Smith
Subject: Re: switch or elseif statement in make
Date: Tue, 24 May 2005 15:04:11 -0400

%% "Martin d'Anjou" <address@hidden> writes:

  md> Most of my makefiles complexity would just vanish if there was a switch 
  md> statement or an elseif statement in make.

The latest CVS version of GNU make allows you to have syntax like:

    if...
        ...
    else if...
        ...
   [else if...
        ...]*
    else
        ...
    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]