16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

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.

Control Macros<br />

make defines a number of control macros that control make’s behavior. When there<br />

are several ways of doing the same thing, control macros are usually the best. A<br />

control macro that has the same function as a special target or attribute also has<br />

the same name.<br />

Macros that are said to be defined internally are automatically created by make and<br />

can be used with the usual $(name) construct. For example, $(PWD) can be used to<br />

obtain the current directory name.<br />

Recognized control macros are:<br />

DIRSEPSTR<br />

Contains the characters used to separate parts in a pathname and can be<br />

set by the user. make uses the first character in this string to build<br />

pathnames when necessary.<br />

.EPILOG<br />

If assigned a nonnull value, the .EPILOG attribute is given to every target.<br />

GROUPFLAGS<br />

Specifies option flags to pass to GROUPSHELL when make invokes it to run a<br />

group recipe.<br />

GROUPSHELL<br />

Gives the pathname of the command interpreter (shell) that make calls to<br />

process group recipes.<br />

GROUPSUFFIX<br />

Specifies a string for make to use as a suffix when creating group recipe<br />

files to be run by the command interpreter.<br />

.IGNORE<br />

If this is assigned a nonnull value, make assigns the .IGNORE attribute to<br />

every target.<br />

INCDEPTH<br />

This is the current depth of makefile inclusion. It is set internally.<br />

MAKE This is set by the startup file and can be changed by the user. The standard<br />

startup file defines it as:<br />

$(MAKECMD) $(MFLAGS)<br />

The MAKE macro is not used by make itself, but the string $(MAKE) is<br />

recognized when using the –n option for single-line recipes.<br />

MAKECMD<br />

This is the name with which make was invoked.<br />

MAKEDIR<br />

This is the full pathname of the initial directory in which make began<br />

execution.<br />

MAKEFLAGS<br />

The MAKEFLAGS macro contains all the options (flags) and macros specified<br />

in the MAKEFLAGS environment variable plus all of the options and<br />

macros specified on the command line, with the following exceptions.<br />

v Specifying –c, –f, or –p in the environment variable results in an error<br />

make<br />

v These same options specified on the command line do not appear in the<br />

MAKEFLAGS macro.<br />

Chapter 2. Shell command descriptions 407

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

Saved successfully!

Ooh no, something went wrong!