delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/03/10/01:17:41

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
Date: Sun, 10 Mar 2002 08:14:44 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Sahab Yazdani <sahaby AT vif DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: make troubles
In-Reply-To: <3C8AD717.7080504@vif.com>
Message-ID: <Pine.SUN.3.91.1020310081348.5667E-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Sun, 10 Mar 2002, Sahab Yazdani wrote:

> i have defined a variable called RELEASE like this:
> 
> RELEASE=n
> 
> which is then checked against to set some flags so that the program will 
> compile either as a RELEASE program or a DEBUG program:
> 
> ifeq ($(RELEASE),y) then
> # define release variables
> else
> # define debug variables
> endif
> 
> NOW, i want to be able to change this variable without coming into the 
> makefile everytime i want to switch the mode of the program.
> 
> MAKE allows me to change variables via the command line like this:
> 
> make RELEASE='y'
> 
> but for some reason, this still compiles as a DEBUG program.

Try

	make RELEASE=y

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019