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