[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Exit code, exit status, errorlevel
From: |
Leeuwesteijn,Joost |
Subject: |
Exit code, exit status, errorlevel |
Date: |
Mon, 1 May 2006 17:36:50 +0200 |
Hi all,
Does make return the exit code that caused the build to fail?
[ quick test ]
No, doesn't seem to do so.
(I'm developing on Windows, sorry... Looking into switching to bash, etc.)
------------------
.PHONY : all
all:
exit 123
------------------
Output:
------------------
C:\>make -f zut.mk
exit 123
make: *** [all] Error 123
C:\>echo %errorlevel%
2
------------------
Make seems to return 2. What error levels are there for make itself? Or am I
looking at a Windows port specific feature here?
Regards,
Joost Leeuwesteijn
- Exit code, exit status, errorlevel,
Leeuwesteijn,Joost <=