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 X-Sender: eliz AT is To: Sahab Yazdani cc: djgpp AT delorie DOT com Subject: Re: make troubles In-Reply-To: <3C8AD717.7080504@vif.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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