GNU make manual 翻译(一)

当分析PostgreSQL 的源代码的时候,经常遇到 Makefile,

读不懂其中的语句,很是令人烦恼。最近准备静下心来,好好地阅读。

为了达到这一目的,进行一次翻译。

1 Overview of `make'    
********************    
    
The `make' utility automatically determines which pieces of a large    
program need to be recompiled, and issues commands to recompile them.    
This manual describes GNU `make', which was implemented by Richard    
Stallman and Roland McGrath.  Development since Version 3.76 has been    
handled by Paul D. Smith.    
    
   GNU `make' conforms to section 6.2 of `IEEE Standard 1003.2-1992'    
(POSIX.2).      
    
   Our examples show C programs, since they are most common, but you    
can use `make' with any programming language whose compiler can be run    
with a shell command.  Indeed, `make' is not limited to programs.  You    
can use it to describe any task where some files must be updated    
automatically from others whenever the others change.    

make 概览

make 工具自动地判定一个大型项目的那些片断需要被重新编译,并且执行相应的命令来完成重新编译动作。

这本手册描述 GNU 的make,它是由 Richard Stallman 和 Roland McGrath 实现的。

从版本 3.76开始,由 Paul D. Smith 负责维护。

GNU make 符合 IEEE 1003.2-1992 的 6.2节。

我们的例子使用了C 程序,因为这是最为普遍的状况。但是你也可以把 make 应用到 任何一种编程语言上,只要这种语言的编译器可以被运行在shell 脚本里。

实际上,make 的使用并不仅仅限于程序,你也可以用它来描述任何一种任务,只要这种任务里面,某些文件的改变,需要引起其他文件的自动改变。

原文地址:https://www.cnblogs.com/gaojian/p/2681610.html