Home    Product Info    Orders    Downloads    About Us    Contact Us


 

Make Exit Status Values

 

B.1 Make Exit Status Values

When Make 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 Make itself. The exit status can also be accessed in the .AFTER special target with the MAKESTATUS macro. For example:

.AFTER :
	%if $(MAKESTATUS) == 3
	%echo Make: The final shell line exited with status: $(status)
	%endif

The exit values and their meanings are:

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 shell line had a non-zero status.
4 Make ran out of memory.
5 The program specified on the shell line was not executable.
6 The shell line was longer than the command processor allowed.
7 The program specified on the shell line could not be found.
8 There was not enough memory to execute the shell line.
9 The shell line produced a device error.
10 The program specified on the shell line became resident.
11 The shell line produced an unknown error.
15 There was a problem with the memory miser.
16 The user hit CTRL+C or CTRL+BREAK..

Home    Product Info    Orders    Downloads    About Us    Contact Us

Opus Software, Inc. 1032 Irving Street, Suite 439 San Francisco, CA 94122 USA
Phone: 415-485-9703 Fax: 415-485-9704 Email:
biz@opussoftware.com