MPE/iX Shell and Utilities Reference Manual, Vol 1

make(1) MPE/iX Shell and Utilities make(1)
we have
$(test:d) -> D1/D2/d3 . d1
$(test:b) ->afk
$(test:f) -> a.out f.out k.out
${test:DB} -> D1/D2/d3/a f d1/k
${test:s/out/in} -> D1/D2/d3/a.in f.in d1/k.in
$(test:f:t"+") -> a.out+f.out+k.out
$(test:t"+") -> D1/D2/d3/a.out+f.out+d1/k.out
$(test:u) -> D1/D2/D3/A.OUT F.OUT D1/K.OUT
$(test:l) -> d1/d2/d3/a.out f.out d1/k.out
$(test:ˆ"/rd/") -> /rd/D1/D2/d3/a.out /rd/f.out /rd/d1/k.out
$(test:+".Z") -> D1/D2/d3/a.out.Z f.out.Z d1/k.out.Z
Run-time Macros
Run-time macros can take on different values for each target.
$@ The full target name. When building a normal target, this macro evaluates to the full
name of the target. When building a library, it expands to the name of the archive
library. For example, if the target is
mylib(member)
$@ expands to
mylib.
$% The full target name. When building a normal target, this macro evaluates to the full
name of the target. When building a library, it expands to the name of the archive
member. For example, if the target is
mylib(member)
$% expands to
member
$& The list of all prerequisites, in all rules that apply to the target. In :: rules, this
macro produces a value identical to the macro.
$? The list of all prerequisites which are newer than the target.
The list of all prerequisites taken from the list specified on the rule line of the recipe
where the appears.
1-338 Commands and Utilities