help-make
[Top][All Lists]
Advanced

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

Re: Removing make goals


From: Werner LEMBERG
Subject: Re: Removing make goals
Date: Sun, 05 Apr 2009 13:18:58 +0200 (CEST)

> Would it be more natural to make 'debug' a variable instead of a
> target?  Then you could invoke it like this:
>   make debug=1 foo-a
> or perhaps:
>   make build_type=debug foo-a
> and use the variable to set appropriate flags. This resembles the
> common
>   make CFLAGS='-g' foo-a
> idiom that everyone would recognize.

More natural, hmm...  This is of course an alternative, but I feel
that `debug' alone as an argument to `make' is kind of a target also.


    Werner




reply via email to

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