3.10 Special Targets

omake uses some special targets at special times. The build scripts associated with these special targets are used at specific times as described in Table 17.

Table 17 Special Targets


Special Target

Usage

.AFTER : [ source ... ]


After omake builds its last target and immediately before it exits, any sources to .AFTER are built, and the build scripts of .AFTER are executed. To execute the build scripts even when using omake -n, give .AFTER the .MAKE attribute.


.BEFORE : [ source ... ]


Before omake builds its first target, any sources to .BEFORE are built, and then the build scripts of .BEFORE are executed. To execute the build scripts even when using omake -n, give .BEFORE the .MAKE attribute.


.DEFAULT[.ext] :


If omake needs to update a target that has no build scripts, omake looks for an inference rule that matches the target name and uses the build scripts of the matched inference rule. Each .DEFAULT[.ext] target is converted into an %.ext : inference rule.

Compatibility with Other Make Utilities

For PM/CB compatibility, we support .DEINIT, .EPILOG, .INIT, and .PROLOG. See Appendix D, Compatibility and Emulation.