GNU make manual 翻译(三十)
发布日期:2021-09-02 01:09:58 浏览次数:1 分类:技术文章

本文共 737 字,大约阅读时间需要 2 分钟。

继续翻译

A rule such as this should not be placed at the beginning of the  makefile, because we do not want it to run by default!  Thus, in theexample makefile, we want the rule for `edit', which recompiles the editor, to remain the default goal.                                                   Since `clean' is not a prerequisite of `edit', this rule will notrun at all if we give the command `make' with no arguments.  In order to make the rule run, we have to type `make clean'.  *Note How to Run `make': Running.

像这样的规则,不应当出现在makefile的起始处,因为我们不想让它被当作缺省终点而运行!

因此,在此makefile例子中,我们想让 edit 规则,也就是那个重新编译editor的规则,作为缺省的终点。

 由于 clean 并不是 edit 的前提条件,如果我们运行 make而不带有参数,那么这个规则根本就不会运行。为了运行此规则,我们需要键入 make clean。

*Note How to Run make: Running

 

后文待续

转载地址:https://blog.csdn.net/weixin_34129696/article/details/85516908 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:GNU make manual 翻译( 一百六十三)
下一篇:Windows8下设置VS默认启动方式为管理员启动

发表评论

最新留言

初次前来,多多关照!
[***.217.46.12]2024年04月14日 06时10分03秒

关于作者

    喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!

推荐文章

【Leetcode刷题篇】leetcode322 零钱兑换 2019-04-26
【Leetcode刷题篇】leetcode437 路径总和III 2019-04-26
【Linux篇】Linux常用命令之性能优化 2019-04-26
【面试篇】JVM体系 2019-04-26
【Leetcode刷题篇】leetcode406 根据身高重建队列 2019-04-26
【Leetcode刷题篇】leetcode581 最短无序连续子数组 2019-04-26
【Leetcode刷题篇】leetcode538 把二叉搜索树转换为累加树 2019-04-26
【多线程与高并发】线程的优先级是怎么回事? 2019-04-26
【多线程与高并发】Java守护线程是什么?什么是Java的守护线程? 2019-04-26
【Leetcode刷题篇/面试篇】-前缀树(Trie) 2019-04-26
【Leetcode刷题篇】leetcode337 打家劫舍III 2019-04-26
【Leetcode刷题篇】leetcode4 寻找两个正序数组的中位数 2019-04-26
【Leetcode刷题篇】leetcode316 去除重复字母 2019-04-26
【Leetcode刷题篇】leetcode1081 不同字符的最小子序列 2019-04-26
【面试篇】Java网络编程与IO流体系 2019-04-26
【大话Mysql面试】-Mysql的索引为什么要使用B+树,而不是B树,红黑树等之类? 2019-04-26
【大话Mysql面试】-如何通俗易懂的了解Mysql的索引最左前缀匹配原则 2019-04-26
【大话Mysql面试】-MYSQL的两种存储引擎MyISAM与InnoDB的区别是什么? 2019-04-26
【大话Mysql面试】-InnoDB可重复读隔离级别下如何避免幻读?MVCC和next-key是什么 2019-04-26
【大话Mysql面试】-Mysql如何恢复数据?如何进行主从复制?Binlog日志到底是什么? 2019-04-26