Index: Makefile.in =================================================================== --- Makefile.in.orig 2005-07-18 04:25:21.000000000 +0200 +++ Makefile.in 2009-11-24 17:22:25.561564000 +0100 @@ -59,13 +59,16 @@ all: example$(EXE) minigzip$(EXE) check: test test: all @LD_LIBRARY_PATH=.:$(LD_LIBRARY_PATH) ; export LD_LIBRARY_PATH; \ - echo hello world | ./minigzip | ./minigzip -d || \ - echo ' *** minigzip test FAILED ***' ; \ + ret=0; \ + if ! echo hello world | ./minigzip | ./minigzip -d; then \ + echo ' *** minigzip test FAILED ***'; ret=1; \ + fi; \ if ./example; then \ echo ' *** zlib test OK ***'; \ else \ - echo ' *** zlib test FAILED ***'; \ - fi + echo ' *** zlib test FAILED ***'; ret=1; \ + fi; \ + exit $$ret libz.a: $(OBJS) $(OBJA) $(AR) $@ $(OBJS) $(OBJA)