help-gnu-utils
[Top][All Lists]
Advanced

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

Re: Makefile target selection


From: John Graham-Cumming
Subject: Re: Makefile target selection
Date: Tue, 28 Dec 2004 09:02:09 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040208 Thunderbird/0.5 Mnenhy/0.6.0.104

John Graham-Cumming wrote:
BAR_PRESENT will be set to bar if bar was specified on the command-line, or an empty string if not. So then you can make parts of the Makefile optional as follows:

    ifdef $(BAR_PRESENT)
        ... do this is bar is a goal ...
    endif

Sorry, I meant to say

     ifdef BAR_PRESENT
         ... do this is bar is a goal ...
     endif

but was getting tired...

John.
--
John Graham-Cumming
jgc@jgc.org

Home: http://www.jgc.org/
Work: http://www.electric-cloud.com/
POPFile: http://getpopfile.org/


reply via email to

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