10 lines
241 B
Makefile
10 lines
241 B
Makefile
|
# error handling: define a "complain" function that maps either to "warning" or
|
||
|
# "error" depending on the "ERR" variable. The callers must use:
|
||
|
# $(call $(complain),<msg>)
|
||
|
|
||
|
ifneq ($(ERR:0=),)
|
||
|
complain = error
|
||
|
else
|
||
|
complain = warning
|
||
|
endif
|