Hi All,

I would like to invoke make with a debug or release configuration, but
without a rule:
    `make debug` or `make release`

Later:

ifeq ($(MAKECMDGOALS),debug)
  CXXFLAGS += -DDEBUG=1 -g3 -ggdb -O0
endif

Because I don't have a rule, I'm getting a make error:
    make: *** No rule to make target `debug'.  Stop.

So I think I've figured out how *not* to do it.

I need to pick up debug or release, then invoke the `all` rule.  Can
anyone suggest a way that works?

Jeff

_______________________________________________
Help-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-make

Reply via email to