摘要:
继续翻译 As this example illustrates, conditionals work at the textual level:the lines of the conditional are treated as part of the makefile, orignored, according to the condition. This is why the larger syntacticunits of the makefile, such as rules, may cross the beginning or theend of the conditio... 阅读全文
摘要:
继续翻译7 Conditional Parts of Makefiles********************************A "conditional" directive causes part of a makefile to be obeyed orignored depending on the values of variables. Conditionals can comparethe value of one variable to another, or the value of a variable to aconstant string. 阅读全文
摘要:
继续翻译`.FEATURES' Expands to a list of special features supported by this version of `make'. Possible values include: `archives' Supports `ar' (archive) files using special filename syntax. *Note Using `make' to Update Archive Files: Archives. `check-symlink' ... 阅读全文
摘要:
继续翻译`MAKE_RESTARTS' This variable is set only if this instance of `make' has restarted (*note How Makefiles Are Remade: Remaking Makefiles.): it will contain the number of times this instance has restarted. Note this is not the same as recursion (counted by the `MAKELEVEL' varia... 阅读全文
摘要:
继续翻译`.DEFAULT_GOAL' Sets the default goal to be used if no targets were specified on the command line (*note Arguments to Specify the Goals: Goals.). The `.DEFAULT_GOAL' variable allows you to discover the current default goal, restart the default goal selection algorithm by clea... 阅读全文
摘要:
继续翻译6.14 Other Special Variables============================GNU `make' supports some variables that have special properties.`MAKEFILE_LIST' Contains the name of each makefile that is parsed by `make', in the order in which it was parsed. The name is appended just before `make' begins 阅读全文
摘要:
继续翻译6.13 Suppressing Inheritance============================As described in previous sections, `make' variables are inherited byprerequisites. This capability allows you to modify the behavior of aprerequisite based on which targets caused it to be rebuilt. Forexample, you might set a target-spe 阅读全文
摘要:
继续翻译6.12 Pattern-specific Variable Values=====================================In addition to target-specific variable values (*note Target-specificVariable Values: Target-specific.), GNU `make' supportspattern-specific variable values. In this form, the variable isdefined for any target that mat 阅读全文
摘要:
继续翻译 Target-specific variables have the same priority as any othermakefile variable. Variables provided on the command line (and in theenvironment if the `-e' option is in force) will take precedence.Specifying the `override' directive will allow the target-specificvariable value to be prefe 阅读全文
摘要:
继续翻译6.11 Target-specific Variable Values====================================Variable values in `make' are usually global; that is, they are thesame regardless of where they are evaluated (unless they're reset, ofcourse). One exception to that is automatic variables (*note AutomaticVariables: 阅读全文