help-make
[Top][All Lists]
Advanced

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

Re: Problem about define a variable according the make command line.


From: Greg Chicares
Subject: Re: Problem about define a variable according the make command line.
Date: Sat, 14 Apr 2007 10:12:30 +0000
User-agent: Thunderbird 1.5.0.10 (Windows/20070221)

On 2007-04-14 09:29Z, Kun Niu wrote:
> Makefile1:
> 
> ifdef DEBUG
> DFLAG=-D DEBUG
> else
> DFLAG=
> endif

Those are 'make' conditionals.

> Makefile2:
> 
> .DEFAULT_GOAL := all
> 
> #ifeq ($(MAKECMDGOALS),debug)
> DFLAG += -D DEBUG -g
> #else
> DFLAG=
> #endif

Those look like C or C++ conditional directives,
but they're actually 'make' comments. Try removing
the '#' characters.




reply via email to

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