02.05.2013 Views

Description - Mks.com

Description - Mks.com

Description - Mks.com

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

If string is empty, macro is assigned the null string (unless you use the += operator; in this case,<br />

the macros contents are not touched). White space on either side of the =, :=, or += is ignored.<br />

Macros are expanded by $(macro) or ${macro}. If a macro name is a single letter, it can also be<br />

expanded by $n, where n is the name.<br />

If the .BRACEEXPAND special target is set, make expands a token sequence (separated by white<br />

space) prepending a prefix string and appending a suffix string to each token:<br />

string1{ token-list }string2<br />

Future versions of MKS Make may not support this obsolescent feature.<br />

A macro can also be modified as it is expanded. The syntax for this is<br />

$(macro {:modifier})<br />

where any number of modifiers can be supplied, separated by :.<br />

modifier<br />

→b<br />

→d<br />

→f<br />

→l<br />

→ s/string/new_string/<br />

→ suffix_string=new_suffix_string<br />

→ t"string"<br />

→u<br />

→^"string"<br />

→+"string"<br />

The :s modifier is a substitute operator; occurrences of the given pattern that are matched are<br />

replaced by the indicated value. The :t modifier tokenizes the macro string definition, placing the<br />

given string between each name in the indicated string. That string may contain the following<br />

escape sequences:<br />

\" → "<br />

\\ → \<br />

\a → alert or <br />

\b → <br />

\f → <br />

\n → <br />

334 of 457

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

Saved successfully!

Ooh no, something went wrong!