diff --git a/src/modules/Makefile.in b/src/modules/Makefile.in
index f9bdf29ce58fb2a84149ba867cc7b91a9e6b6a46..5b444c57089b5c08e1231741a53040fd219f220f 100644
--- a/src/modules/Makefile.in
+++ b/src/modules/Makefile.in
@@ -1,4 +1,4 @@
-# $Id: Makefile.in,v 1.27 1999/03/12 01:12:04 hubbe Exp $
+# $Id: Makefile.in,v 1.28 1999/04/10 02:31:33 mirar Exp $
 
 @SET_MAKE@
 
@@ -30,7 +30,7 @@ $MODULES: force
 modules: $(MODULES)
 	@for a in $(MODULES) ; do \
 	  echo Making $$a; \
-	  ( cd $$a; \
+	  ( cd $$a || exit $$?; \
 	    rm remake >/dev/null 2>&1 || : ; \
 	    $(MAKE) $(MAKE_FLAGS) MODNAME=$$a || \
 	      ( test -f remake && $(MAKE) $(MAKE_FLAGS) MODNAME=$$a ) \