On 2009-04-05 10:49Z, Werner LEMBERG wrote: > > how can I remove a make goal? > > Consider that I have suite of targets `foo-a', `foo-b', ... Normally > I would say, for example, > > make foo-a > > Now imagine that I want to have a special build with a debug target, > and I want to say > > make debug foo-a > > The `debug' isn't a real target; I rather test with > > .PHONY major > ifneq ($(findstring debug,$(MAKECMDGOALS)),) > ... > endif > > to set some flags and the like.
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. _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
