makefile$<
时间: 2023-08-09 16:11:01 浏览: 112
Makefile文件编写详解
在Makefile中,$<是一个自动化变量,表示当前规则的第一个依赖文件。在上述的例子中,$<可以代表当前规则中的.cpp文件。例如,在规则.c.o中,$<表示相应的.c文件。
#### 引用[.reference_title]
- *1* [从零开始学习makefile(4)makefile中%、$@、$<、$^的作用](https://blog.csdn.net/liji_digital/article/details/127425862)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [Makefile:自动化变量 $@,$^,$<,$?](https://blog.csdn.net/Fly_as_tadpole/article/details/107565275)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [Makefile入门二、理解$@、$^和$](https://blog.csdn.net/hjxu2016/article/details/101699484)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文