Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)
Table Of Contents
User Commands (m - o) make(1)
$* Represents the filename section of a source that made a target out-of-
date (in an inference rule) without a suffix.
$@ Represents the full target name of the current target, or the archive
filename part of the library archive target.
$? Represents the list of sources causing a target to be out-of-date (infer-
ence and target rules).
$% Represents a library member in a target rule if the target is a member
of the archive library.
You can also use these local variables appended with D or F, where
D Indicates that the local variable applies to the directory part of the
name. This is the pathname prefix without a trailing / (slash). For
current directories, D is a . (period).
F Indicates that the local variable applies to the filename part of the
name.
The $? local variable can represent a list of sources. When used with D or F, the local
variable can represent a list of directory and filename parts, respectively.
make converts the expression $$ to a single dollar sign ($).
When make encounters a line beginning with the word include followed by another word that is
the name of a makefile (for example, include depend), make attempts to open that file and pro-
cess its contents as if the contents appeared where the include line occurs. This behavior occurs
only if the first noncomment line of the first makefile read by make is not the .POSIX target; oth-
erwise, a syntax error occurs.
Comments
Comments begin with a # (number sign), anywhere but in a shell command line, and continue to
the end of the line.
Environment Variables
The make command supports the following environment variables:
LANG Determines the locale to use for the locale categories when both LC_ALL and
the corresponding environment variable (beginning with LC_) do not specify a
locale.
LC_ALL Determines the locale to be used to override any values for locale categories
specified by the setting of LANG or any other LC_ environment variable.
LC_CTYPE Determines the locale for the interpretation of sequences of bytes of text data as
characters; for example, single-byte characters versus multibyte characters in
arguments.
LC_MESSAGES
Determines the language in which messages should be written.
MAKEFLAGS
Contains any flags that might be specified on the make utility’s command line.
Anything specified on the make utility’s command line is appended to the
MAKEFLAGS variable, which is then entered into the environment for all pro-
grams that make executes. Note that the operation of the -f and -p flags in the
MAKEFLAGS variable are undefined. Command line options have precedence
527188-003 Hewlett-Packard Company 6−7