MPE/iX Shell and Utilities Reference Manual, Vol 1

make(1) MPE/iX Shell and Utilities make(1)
Normally, make does not include white space at the beginning and end of string in the defini-
tion of macro; however, it never strips white space from macros imported from the environ-
ment. If you want to include white space in a macro definition specified on the make com-
mand line, you must enclose the definition in quotes.
make resolves macro definitions in the following order:
1. Macro definitions in the built-in inference rules.
2. Contents of the environment.
3. Macro definitions in the makefiles (in the order they appear).
4. Macro definitions on the command line.
If a macro is already defined when make encounters a new definition for it, the new definition
replaces the old one. For example, a macro definition for name on the command line overrides
a definition for name in the makefile.
Macro Modifiers
MAKE supports macro expansions of the form:
$(macro_name:modifier_list:modifier_list:...)
Possible modifiers are:
ˆ"string" prefix tokens
+"string" suffix tokens
b file portion of all path names, without suffix
d directory portion of all path names
f file portion of all path names, including suffix
l all characters mapped to lowercase
s/pat/string/ simple pattern substitution
suffix=string suffix replacement
t"separator" tokenization
u all characters mapped to uppercase
You may specify macro modifiers in either upper or lowercase.
For example, with
test = D1/D2/d3/a.out f.out d1/k.out
Commands and Utilities 1-337