diff options
author | Pixel <pixel@nobis-crew.org> | 2011-12-04 11:41:19 -0800 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2011-12-04 11:41:19 -0800 |
commit | f99192cb59bb3e09ae4841bb790c57969fbe2003 (patch) | |
tree | 9e531456408abba0532522fe4371d6ab4b128f6c | |
parent | c39471409ed91e320b834979053e76738a58d6fc (diff) |
Making sure that if a test fails, the 'make' command stops
-rw-r--r-- | Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -194,15 +194,15 @@ all: dep lib tests: $(TESTS) ifneq ($(CROSSCOMPILE),true) - for t in $(TESTS) ; do ./$$t ; done + $(foreach b, $(TESTS), ./$(b) && ) exit 0 || exit -1 else ifeq ($(SYSTEM),MINGW32) - for t in $(TESTS) ; do wine ./$$t ; done + $(foreach b, $(TESTS), wine ./$(b) && ) exit 0 || exit -1 endif endif strip: $(TESTS) - for t in $(TESTS) ; do $(STRIP) ./$$t ; done + $(foreach b, $(TESTS), $(STRIP) ./$(b) && ) exit 0 || exit -1 lib: $(LIB) |