makefile 里set -e
时间: 2024-04-25 18:25:07 浏览: 147
在makefile中,"set -e"是一个常见的命令,用于在执行命令时检测错误并立即停止执行。它会在每个命令前面加上一个"-"符号,如果该命令返回非零的退出码,则会立即停止执行后续的命令。这样可以确保在编译过程中出现错误时能够及时停止编译并报告错误。\[3\]
#### 引用[.reference_title]
- *1* [makefile 基础](https://blog.csdn.net/funkidd/article/details/112238438)[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* *3* [linux中makefile高级用法--makefile调用makefile](https://blog.csdn.net/u010835747/article/details/123702956)[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 ]
阅读全文