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

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

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

Using the <strong>MKS</strong> Make Utility<br />

runtime macro), however, serve a useful function when used in<br />

prerequisite lists; they can refer to the associated target’s name (in<br />

full, or in part).<br />

Control Macros<br />

<strong>MKS</strong> Make groups control macros into two sets: string-valued macros<br />

and attribute macros.<br />

<strong>MKS</strong> Make automatically creates internally defined macros. For<br />

example, you can use $(PWD) to expand to the name of the present<br />

working directory.<br />

<strong>The</strong> following table describes some of the most useful string valued<br />

macros. For a complete list, see the online command reference for the<br />

make command.<br />

Macro Description<br />

DIRSEPSTR Defined internally, provides the characters that you can<br />

use to separate components in a path name.<br />

On UNIX and POSIX systems, this macro simply contains<br />

the slash character (/).<br />

On Windows 95/NT, and OS/2 systems, the startup.mk<br />

file redefines DIRSEPSTR, according to the value you<br />

specify for your SHELL environment variable. If the SHELL<br />

variable is undefined, and COMSPEC is set, then the startup<br />

file redefines DIRSEPSTR to contain a backslash, a<br />

forward slash, and a colon (\/:). If you run <strong>MKS</strong> Make<br />

with -r (so startup.mk is not read), or if SHELL is<br />

defined, or if both SHELL and COMSPEC are undefined,<br />

then the DIRSEPSTR special macro contains a string<br />

consisting of forward slash, a backslash, and a colon (/<br />

\:). If <strong>MKS</strong> Make finds it necessary to make a path name,<br />

it uses the first character of DIRSEPSTR to separate path<br />

name components.<br />

NULL Defined internally, expands to an empty string. Use this for<br />

comparisons in conditional expressions, and in<br />

constructing metarules without ambiguity.<br />

For more information, see “Using Inference Rules” on<br />

page 281.<br />

OS Defined internally, expands to the name of the operating<br />

system.<br />

OSVERSION Defined internally, expands to a string giving the major<br />

version of your current operating system.<br />

272 <strong>Source</strong> <strong>Integrity</strong> <strong>Professional</strong> <strong>Edition</strong>

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

Saved successfully!

Ooh no, something went wrong!