使用info/warning/error增加调试信息
# 1、info 是不带行号的
$(info “here is debug")
# 2、warning 是带行号的
$(warning “here is debug")
# 2、error 停止当前makefile的编译
$(error “here is debug")
使用echo输出变量:
ARCH ?= arm
mytest:
@echo 'ARCH='$(ARCH)
# 1、info 是不带行号的
$(info “here is debug")
# 2、warning 是带行号的
$(warning “here is debug")
# 2、error 停止当前makefile的编译
$(error “here is debug")
使用echo输出变量:
ARCH ?= arm
mytest:
@echo 'ARCH='$(ARCH)