makefile info
时间: 2023-09-26 11:07:51 浏览: 135
在Makefile中,使用"info"命令可以打印字符串和Makefile中的变量。通过在Makefile中添加"info"命令,可以在编译Makefile时打印相应的信息。例如,在Makefile中添加如下信息:
```makefile
info:
@echo "This is a Makefile"
@echo "Version: $(VERSION)"
```
在编译Makefile时执行"make info"命令,就可以看到打印的信息:
```
This is a Makefile
Version: 1.0
```
使用"info"命令可以方便地在Makefile中查看特定的信息,并进行调试。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [Makefile 学习二:命令和变量](https://blog.csdn.net/u012948302/article/details/127716632)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [uboot-Makefile学习(2)](https://blog.csdn.net/qq_41545736/article/details/125116184)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文