Makefile 的打印。


方法一

$(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)"

ref:

How can I print message in Makefile?

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章