[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Limitations of Make: make -k exit status not trustable
From: |
Alexandre Duret-Lutz |
Subject: |
Limitations of Make: make -k exit status not trustable |
Date: |
24 Jul 2002 23:30:50 +0200 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 |
Ok to commit?
2002-07-24 Alexandre Duret-Lutz <address@hidden>
* doc/autoconf.texi (Limitations of Make): Never trust the
exit status of `make -k'.
Index: doc/autoconf.texi
===================================================================
RCS file: /cvsroot/autoconf/autoconf/doc/autoconf.texi,v
retrieving revision 1.651
diff -u -r1.651 autoconf.texi
--- doc/autoconf.texi 24 Jul 2002 00:38:49 -0000 1.651
+++ doc/autoconf.texi 24 Jul 2002 21:36:42 -0000
@@ -10421,6 +10421,27 @@
World
@end example
address@hidden @code{make -k}
address@hidden @code{make -k}
+
+Do not rely on the exit status of @code{make -k}. Some implementations
+reflect whether they encountered an error in their exit status; other
+implementations always succeed.
+
address@hidden
+% @kbd{cat Makefile}
+all:
+ false
+% @kbd{make -k; echo exit status: $?} # GNU make
+false
+make: *** [all] Error 1
+exit status: 2
+% @kbd{pmake -k; echo exit status: $?} # BSD make
+false
+*** Error code 1 (continuing)
+exit status: 0
address@hidden example
+
@item @code{VPATH}
@cindex @code{VPATH}
--
Alexandre Duret-Lutz
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Limitations of Make: make -k exit status not trustable,
Alexandre Duret-Lutz <=