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.

The construct may be modified:<br />

fred.obj : $$(@:b).c<br />

If you are building a library, $$% stands for the name of the archive member being made. If you are<br />

building a normal target, $$% stands for the name of the target currently being made.<br />

$$* stands for the name of the current target being made, but with no suffix.<br />

If you are building a library, $$> stands for the name of the archive library being made. If you are<br />

not building a library, its use is invalid.<br />

Comments<br />

Comments begin with the number sign (#) character and extend to the end-of-line. make discards<br />

all <strong>com</strong>ment text.<br />

Makefile Contents<br />

Inside makefiles, you can split long lines over several lines of text. To do this, put a backslash (\)<br />

at the very end of the line. You can use this technique to extend <strong>com</strong>ments as well as recipe lines<br />

and macro definitions for example.<br />

If a rule or macro definition must contain a # character, use \#; otherwise, make mistakes the # for<br />

the beginning of a <strong>com</strong>ment. Also, if a macro definition must contain a single $ character, use $$.<br />

File names that contain a colon (:) must always be enclosed in quotes (" "):<br />

"a:target" : "a:prereq"<br />

Rules<br />

The general format of a rule is<br />

targets [attributes] ruleop [prerequisites] [;recipe]<br />

{ recipe}<br />

The parts of the rule are described as follows.<br />

targets<br />

one or more target names.<br />

attributes<br />

412 of 457

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

Saved successfully!

Ooh no, something went wrong!