摘要:
继续翻译 Thus, when you give the command: make `make' reads the makefile in the current directory and begins by processing the first rule. In the example, this rule is for relinking `edit'; but before `make' can fully process this rule, it must process the rules for the fi... 阅读全文
摘要:
继续翻译2.3 How `make' Processes a Makefile =================================== By default, `make' starts with the first target (not targets whose names start with `.'). This is called the "default goal". ("Goals" are the targets that `make' strives ultimately to upda 阅读全文
摘要:
继续翻译 The target `clean' is not a file, but merely the name of an action. Since you normally do not want to carry out the actions in this rule, `clean' is not a prerequisite of any other rule. Consequently, `make' never does anything with it unless you tell it specifically. Note that ... 阅读全文
摘要:
继续翻译 A recipe may follow each line that contains a target and prerequisites. These recipes say how to update the target file. A tab character (or whatever character is specified by the `.RECIPEPREFIX' variable; *note Special Variables::) must come at the beginning of every line in th... 阅读全文
摘要:
继续翻译 In the example makefile, the targets include the executable file `edit', and the object files `main.o' and `kbd.o'. The prerequisites are files such as `main.c' and `defs.h'. In fact, each `.o' file is both a target and a prerequisite. Recipes include `cc -c main.c' 阅读全文
摘要:
继续翻译We split each long line into two lines using backslash-newline; this is like using one long line, but is easier to read. To use this makefile to create the executable file called `edit', type: make To use this makefile to delete the executable file and all the o... 阅读全文
摘要:
继续翻译2.2 A Simple Makefile ===================== Here is a straightforward makefile that describes the way an executable file called `edit' depends on eight object files which, in turn, depend on eight C source and three header files. In this example, all the C files include... 阅读全文
摘要:
继续翻译 A "rule", then, explains how and when to remake certain files which are the targets of the particular rule. `make' carries out the recipe on the prerequisites to create or update the target. A rule can also explain how and when to carry out an action. *Note Writing Rules: Rules... 阅读全文
摘要:
继续翻译 A "recipe" is an action that `make' carries out. A recipe may have more than one command, either on the same line or each on its own line. *Please note:* you need to put a tab character at the beginning of every recipe line! This is an obscurity that catches the unwary. If you ... 阅读全文
摘要:
继续翻译2.1 What a Rule Looks Like ========================== A simple makefile consists of "rules" with the following shape: TARGET ... : PREREQUISITES ... RECIPE ... ... A "target" is usually the name of a file that is gen... 阅读全文
摘要:
继续翻译2 An Introduction to Makefiles ****************************** You need a file called a "makefile" to tell `make' what to do. Most often, the makefile tells `make' how to compile and link a program. In this chapter, we will discuss a simple makefile that describes how... 阅读全文
摘要:
继续翻译In addition to the information above, please be careful to include the version number of `make' you are using. You can get this information with the command `make --version'. Be sure also to include the type of machine and operating system you are using. One way to obtain this inf... 阅读全文
摘要:
继续翻译 Before reporting a bug or trying to fix it yourself, try to isolate it to the smallest possible makefile that reproduces the problem. Then send us the makefile and the exact results `make' gave you, including any error or warning messages. Please don't paraphrase these messages: ... 阅读全文
摘要:
继续翻译1.2 Problems and Bugs ===================== If you have problems with GNU `make' or think you've found a bug, please report it to the developers; we cannot promise to do anything but we might well want to fix it. Before reporting a bug, make sure you've actually found a... 阅读全文
摘要:
继续翻译1.1 How to Read This Manual =========================== If you are new to `make', or are looking for a general introduction, read the first few sections of each chapter, skipping the later sections. In each chapter, the first few sections contain introductory or general infor... 阅读全文
摘要:
继续翻译Preparing and Running Make ========================== To prepare to use `make', you must write a file called the makefile that describes the relationships among files in your program and provides commands for updating each file. In a program, typically, the executable file... 阅读全文
摘要:
当分析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... 阅读全文
摘要:
在gram.c 中,有一行:#define yyparse base_yyparse看gram.y 中,与此对应的是: %name-prefix="base_yy"而看 bison 的 manual:http://www.gnu.org/software/bison/manual/html_node/Parser-Function.html4.1 The Parser FunctionyyparseYou call the functionyyparseto cause parsing to occur. This function reads tokens, execut 阅读全文