博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
GNU make manual 翻译(三十)
阅读量:4695 次
发布时间:2019-06-09

本文共 805 字,大约阅读时间需要 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://www.cnblogs.com/gaojian/archive/2012/09/13/2683732.html

你可能感兴趣的文章
i686和x86_64的区别
查看>>
玩转TypeScript(1) --定义简单的类
查看>>
从零开始的JS生活(二)——BOM、DOM与JS中的事件
查看>>
阶段1 语言基础+高级_1-3-Java语言高级_02-继承与多态_第3节 接口_7_接口的静态方法定义...
查看>>
ubuntn安装五笔输入法
查看>>
Linux学习笔记之(2)~linux目录树概览和说明
查看>>
Poj 1019 Number Sequence( 数据分析和操作)
查看>>
Hibernate实现分页查询
查看>>
Odoo与浪潮合资研发PS Cloud之如何管理你不拥有的股票
查看>>
2017-2018-1 20155220 20155309 20155317 实验一 开发环境的熟悉
查看>>
SQL Plus使用简单介绍
查看>>
Javascript面向对象编程(二):构造函数的继承
查看>>
hdu 4462(状态压缩)
查看>>
我的linuxES
查看>>
FileReader文件读取API
查看>>
UVa 11300 Spreading the Wealth 分金币
查看>>
[leetcode] Happy Number
查看>>
Java第五周学习总结
查看>>
j.c.Warnsdorff马踏棋盘算法
查看>>
git私服
查看>>