摘要:
继续翻译3.6 Overriding Part of Another Makefile ======================================= Sometimes it is useful to have a makefile that is mostly just like another makefile. You can often use the `include' directive to include one in ... 阅读全文
摘要:
继续翻译 However, on occasion you might actually wish to prevent updating of even the makefiles. You can do this by specifying the makefiles asgoals in the command line as well as specifying them as makefiles. When the makefile name is specified explicitly as a goal, the options `-t' and so on do ap 阅读全文
摘要:
继续翻译 When you use the `-t' or `--touch' option (*note Instead of Executing Recipes: Instead of Execution.), you would not want to use anout-of-date makefile to decide which targets to touch. So the `-t' option has no effect on updating makefiles; they are really updated even if `-t' 阅读全文
摘要:
继续翻译 If you do not specify any makefiles to be read with `-f' or `--file'options, `make' will try the default makefile names; *note What Name to Give Your Makefile: Makefile Names. Unlike makefiles explicitly requested with `-f' or `--file' options, `make' is not certain that 阅读全文
摘要:
继续翻译 If you know that one or more of your makefiles cannot be remade and you want to keep `make' from performing an implicit rule search onthem, perhaps for efficiency reasons, you can use any normal method of preventing implicit rule lookup to do so. For example, you can write an explicit rule 阅读全文
摘要:
继续翻译3.5 How Makefiles Are Remade ============================ Sometimes makefiles can be remade from other files, such as RCS or SCCS files. If a makefile can be remade from other files, you probably want `make' to get an up-to-d... 阅读全文
摘要:
继续翻译3.4 The Variable `MAKEFILES' ============================ If the environment variable `MAKEFILES' is defined, `make' considers its value as a list of names (separated by whitespace) of additionalmakefiles to be rea... 阅读全文
摘要:
继续翻译 For compatibility with some other `make' implementations, `sinclude'is another name for `-include'. ---------- Footnotes ---------- (1) GNU Make compiled for MS-DOS and MS-Windo... 阅读全文
摘要:
继续翻译 If you want `make' to simply ignore a makefile which does not exist or cannot be remade, with no error message, use the `-include' directive instead of `include', like this: -include FILENAMES... ... 阅读全文
摘要:
继续翻译 If the specified name does not start with a slash, and the file is not found in the current directory, several other directories are searched. First, any directories you have specified with the `-I' or`--include-dir' option are searched (*note Summary of Options: Options Summary.). Then 阅读全文
摘要:
继续翻译 Another such occasion is when you want to generate prerequisites from source files automatically; the prerequisites can be put in a file that is included by the main makefile. This practice is generally cleaner than that of somehow appending the prerequisites to the end of the main makefile... 阅读全文
摘要:
继续翻译 When `make' processes an `include' directive, it suspends reading of the containing makefile and reads from each listed file in turn. When that is finished, `make' resumes reading the makefile in which the directive appears. One occasion for... 阅读全文
摘要:
继续翻译 For example, if you have three `.mk' files, `a.mk', `b.mk', and `c.mk', and `$(bar)' expands to `bish bash', then the following expression include foo *.mk $(bar) is equivalent to include foo a.mk b.mk c.mk bish bash 例如,如果你有三个 .mk文件,a.... 阅读全文
摘要:
继续翻译 Extra spaces are allowed and ignored at the beginning of the line,but the first character must not be a tab (or the value of `.RECIPEPREFIX')--if the line begins with a tab, it will be considered a recipe line. Whitespace is required between `include' and the file name... 阅读全文
摘要:
继续翻译3.3 Including Other Makefiles ============================= The `include' directive tells `make' to suspend reading the current makefile and read one or more other makefiles before continuing. The directive is a line in the m... 阅读全文
摘要:
继续翻译 If `make' finds none of these names, it does not use any makefile.Then you must specify a goal with a command argument, and `make' willattempt to figure out how to remake it using only its built-in implicitrules. *Note Using Implicit Rules: Implicit Rules. If you want to us... 阅读全文
摘要:
继续翻译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'. ... 阅读全文
摘要:
继续翻译 You cannot use comments within variable references or function calls: any instance of `#' will be treated literally (rather than as the start of a comment) inside a variable reference or function call. Comments within a reci... 阅读全文
摘要:
继续翻译 * `#' in a line of a makefile starts a "comment". It and the rest of the line are ignored, except that a trailing backslash not escaped by another backslash will continue the comment across multiple lines. A line containing just a comment (with perhaps spaces before it) ... 阅读全文
摘要:
继续翻译 * A "directive" is an instruction for `make' to do something special while reading the makefile. These include: * Reading another makefile (*note Including Other Makefiles: Include.). ... 阅读全文