GNU make manual 翻译(三十七)

继续翻译

复制代码
3.2 What Name to Give Your Makefile                        
===================================                        
                        
By default, when `make' looks for the makefile, it tries the following 
names, in order: `GNUmakefile', `makefile' and `Makefile'.                          
                        
   Normally you should call your makefile either `makefile' or 
`Makefile'.  (We recommend `Makefile' because it appears prominently 
near the beginning of a directory listing, right near other important 
files such as `README'.)  The first name checked, `GNUmakefile', is not 
recommended for most makefiles.  You should use this name if you have a
makefile that is specific to GNU `make', and will not be understood by 
other versions of `make'.  Other `make' programs look for `makefile' and
`Makefile', but not `GNUmakefile'.                        
复制代码
3.2 给你的Makefile起个什么名字

缺省地,当make 寻找makefile的时候,它会按如下顺序:

GNUmakefile, makefile,Makefile

通常,你应当称你的 makefile为 'makefile或'Makefile(我们建议使用 Makefile,因为它会在目录中显示在靠近起始的位置,比较显眼。也靠近其他重要文件如README)。

第一个名字'GNUmakefile' 不受推荐。你应当在此makefile有GNU特性且不被其他版本make理解的情况下来使用此名字。

其他的make会查找 makefile和 Makefile, 而不是 GNUmakefile。

后文待续


本文转自健哥的数据花园博客园博客,原文链接http://www.cnblogs.com/gaojian/archive/2012/09/14/2684354.html,如需转载请自行联系原作者
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值