摘要:
见如下例子: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 阅读全文