02.05.2013 Views

The Source Integrity Professional Edition User Guide - MKS

The Source Integrity Professional Edition User Guide - MKS

The Source Integrity Professional Edition User Guide - MKS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

and<br />

$(TEST:+".c")<br />

expands to<br />

main.c func1.c func2.c<br />

Controlling <strong>MKS</strong> Make<br />

If the prefix and suffix strings themselves consist of a list of tokens<br />

separated by blanks, the resulting expansion provides the cross<br />

product of both lists. Consider the following example using a<br />

different value for the TEST macro.<br />

TEST = a b c<br />

$(TEST:^"1 2 3")<br />

expands to<br />

and<br />

1a 1b 1c 2a 2b 2c 3a 3b 3c<br />

$(TEST:+"1 2 3")<br />

expands to<br />

a1 b1 c1 a2 b2 c2 a3 b3 c3<br />

If you combine these two references<br />

$(TEST:^"1 2 3":+"1 2 3")<br />

expands to<br />

Controlling <strong>MKS</strong> Make<br />

For a complete technical<br />

description, see the man page<br />

for the make command.<br />

Attributes<br />

1a1 1b1 1c1 2a1 2b1 2c1 3a1 3b1 3c1<br />

1a2 1b2 1c2 2a2 2b2 2c2 3a2 3b2 3c2<br />

1a3 1b3 1c3 2a3 2b3 2c3 3a3 3b3 3c3<br />

This chapter has covered a few ways to control the way <strong>MKS</strong> Make<br />

proceeds when rebuilding a file. To really control its behavior, you<br />

need to understand how to use attributes, special targets, and special<br />

macros.<br />

This section introduces you to these concepts and describes some<br />

commonly used examples.<br />

Attributes represent qualities that you can attach to targets. When<br />

make updates a target, it triggers any attributes associated with that<br />

target.<br />

<strong>User</strong> <strong>Guide</strong> 265

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

Saved successfully!

Ooh no, something went wrong!