Makefile中的打印调试信息的几个方法
文章目录
1 使用info/warning/error增加调试信息
方法1: $(info, “here add the debug info”)
这个不能打印出.mk的行号
方法2: $(warning, “here add the debug info”)
方法3: $(error “error: this will stop the compile”)
这个可以停止当前makefile的编译
方法4: $(info, $(TARGET_DEVICE) )
这个可以打印变量的值