摘要:
继续翻译4.5.3 How Directory Searches are Performed ------------------------------------------ When a prerequisite is found through directory search, regardless of type (general or selective), the pathname located may not be the one th... 阅读全文
摘要:
继续翻译 If several `vpath' patterns match the prerequisite file's name, then `make' processes each matching `vpath' directive one by one, searching all the directories mentioned in each directive. `make' handles multiple `vpath' directives in the order in which they appear in th 阅读全文
摘要:
继续翻译 `%' characters in a `vpath' directive's pattern can be quoted with preceding backslashes (`\'). Backslashes that would otherwise quote `%' characters can be quoted with more backslashes. Backslashes that quote `%' characters or other backslashes are removed from the patt 阅读全文
摘要:
继续翻译`vpath PATTERN' Clear out the search path associated with PATTERN. `vpath' Clear all search paths previously specified with `vpath' directives. ... 阅读全文
摘要:
继续翻译4.5.2 The `vpath' Directive --------------------------- Similar to the `VPATH' variable, but more selective, is the `vpath' directive (note lower case), which allows you to specify a search path for a particular class of file ... 阅读全文
摘要:
继续翻译4.5.1 `VPATH': Search Path for All Prerequisites ------------------------------------------------ The value of the `make' variable `VPATH' specifies a list of directories that `make' should search. Most often, the directories... 阅读全文
摘要:
继续翻译4.5 Searching Directories for Prerequisites =========================================== For large systems, it is often desirable to put sources in a separate directory from the binaries. The "directory search" features of `ma... 阅读全文
摘要:
继续翻译4.4.3 The Function `wildcard' ----------------------------- Wildcard expansion happens automatically in rules. But wildcard expansion does not normally take place when a variable is set, or inside the arguments of a function.... 阅读全文
摘要:
继续翻译4.4.2 Pitfalls of Using Wildcards --------------------------------- Now here is an example of a naive way of using wildcard expansion, thatdoes not do what you would intend. Suppose you would like to say that the executable file `foo' is made from all the object files in... 阅读全文
摘要:
见如下例子:LIB=*.oall: $(LIB) @echo $^$(LIB): @echo $@执行结果:*.o*.o所以 阅读全文
摘要:
继续翻译4.4.1 Wildcard Examples ----------------------- Wildcards can be used in the recipe of a rule, where they are expanded by the shell. For example, here is a rule to delete all the object files: clean: ... 阅读全文
摘要:
继续翻译 Wildcard expansion is performed by `make' automatically in targets and in prerequisites. In recipes, the shell is responsible for wildcard expansion. In other contexts, wildcard expansion happens only if you request it explicitly with the `wildcard' function. ... 阅读全文
摘要:
继续翻译4.4 Using Wildcard Characters in File Names =========================================== A single file name can specify many files using "wildcard characters". The wildcard characters in `make' are `*', `?' and `[...]', the sam... 阅读全文
摘要:
Consider an example where your targets are to be placed in a separate directory, and that directory might not exist before `make' is run. Inthis situation, you want the directory to be created before any targets are placed into it but, because the timestamps on directories change whenever a file 阅读全文