I am trying to create a makefile so when calling it the syntax will be make release
or make debug
.
In order to do so, I have composed the following makefile:
release debug: mode := $@
release debug: build
build:
*** actual build commands using $(mode) ***
But in the making process, when reaching the build
rule, $(mode)
seems to be empty.
Is there a better/proper build debug and release binaries?