方法一
$(info your_text)
: Information. This doesn’t stop the execution.
$(warning your_text)
: Warning. This shows the text as a warning.
$(error your_text)
: Fatal Error. This will stop the execution.
例子:
$(info "CFLAGS: $(CFLAGS)")
方法二
例子:
all:
@echo "CFLAGS: $(CFLAGS)"