omake controls the execution of other programs, and the memory that omake itself uses is unavailable to these programs while omake is controlling them. When omake exits, it returns an exit status indicating the termination reason. The exit status can be tested by the command shell or, if you are doing a recursive make, by omake itself. The exit status can also be accessed in the .AFTER special target with the MAKESTATUS macro. For example:
.AFTER :
%if $(MAKESTATUS) == 3
%echo omake: The final build script exited with status: $(status)
%endif
Table 20 lists exit values and their meanings.
Exit Status | Meaning |
---|---|
0 | Normal exit with no errors. |
1 | General purpose error if no other explicit error is known. |
2 | There was an error in the makefile. |
3 | A build script had a nonzero status. |
4 | omake ran out of memory. |
5 | The program specified on the build script was not executable. |
6 | The build script was longer than the command processor allowed. |
7 | The program specified on the build script cannot be found. |
8 | There was not enough memory to execute the build script. |
9 | The build script produced a device error. |
10 | The program specified on the build script became resident. |
11 | The build script produced an unknown error. |
16 | The user typed <CTRL-C> or <CTRL-BREAK>. |
Feedback on the documentation in this site? We welcome any comments!
Copyright © 2001 by Rational Software Corporation. All rights reserved. |