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: Kun Niu
Subject: Re: Problem about define a variable according the make command line.
Date: Sat, 14 Apr 2007 23:27:53 +0800

Thank you for your kind reply.
I'm sorry for my carelessness.:(

2007/4/14, Greg Chicares <address@hidden>:
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.



--
失业
         牛坤
MSN:address@hidden
reply via email to

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