摘要:
继续翻译 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) ... 阅读全文