02.05.2013 Views

Description - Mks.com

Description - Mks.com

Description - Mks.com

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

a list, possibly empty, of attributes to apply to the list of targets.<br />

ruleop<br />

an operator token, usually :, that separates the target names from the prerequisite names<br />

and may also affect the processing of the specified targets.<br />

prerequisites<br />

a list of zero or more names the specified targets depend on.<br />

recipe<br />

<strong>com</strong>mand to execute to update targets. It may follow on the same line as the prerequisites,<br />

separated from them by a semicolon (;). If such a recipe is present, make takes it as the<br />

first in the list of recipe lines defining how to make the named targets. Additional recipe lines<br />

may follow the first line of the rule. Each subsequent recipe line must begin with a tab<br />

character.<br />

The possible rule operators are described here:<br />

targets : prereqs<br />

simple rule definition. For explicit targets, at most one simple rule may have a recipe, in<br />

contrast with the :: rule operator, whose description follows.<br />

targets :! prereqs<br />

executes the recipe for the associated targets once for each out-of-date prerequisite. In<br />

simple rules, the recipe is executed only once, for all out-of-date prerequisites at the same<br />

time. The $< macro expands to the current prerequisite if it appears in rules with this rule<br />

operator.<br />

targets :^ prereqs<br />

inserts the specified prerequisites before any other prerequisites already associated with the<br />

specified targets.<br />

targets :- prereqs<br />

clears the previous list of prerequisites before adding the new prerequisites.<br />

targets :: prereqs<br />

is used for multiple rules applying to the same target. Each rule can specify a different set of<br />

prerequisites with a different recipe for updating the target. Each rule is treated<br />

independently; the target is remade for each rule with out-of-date prerequisites, using the<br />

corresponding recipe.<br />

targets :| prereqs<br />

can only be used in meta-rules. It tells make to treat each meta-dependency as an<br />

413 of 457

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!