]> git.sur5r.net Git - openldap/blobdiff - build/dir.mk
Bug fix and Windows compat change.
[openldap] / build / dir.mk
index ebf4d813e75034d4c7af226bb60db3eedcf663a3..efda69262e90552b7dffd2a1c4525bcebcf4ed24 100644 (file)
@@ -1,4 +1,5 @@
-## Copyright 1998,1999 The OpenLDAP Foundation
+# $OpenLDAP$
+## Copyright 1998-2000 The OpenLDAP Foundation
 ## COPYING RESTRICTIONS APPLY.  See COPYRIGHT File in top level directory
 ## of this package for details.
 ##---------------------------------------------------------------------------
@@ -12,6 +13,7 @@ all-common: FORCE
        @for i in $(SUBDIRS) $(ALLDIRS); do             \
                echo "  Entering subdirectory $$i";             \
                ( cd $$i; $(MAKE) $(MFLAGS) all );              \
+               if test $$? != 0 ; then exit 1; fi ;    \
                echo " ";                                                               \
        done
 
@@ -20,6 +22,7 @@ install-common: FORCE
        @for i in $(SUBDIRS) $(INSTALLDIRS); do         \
                echo "  Entering subdirectory $$i";             \
                ( cd $$i; $(MAKE) $(MFLAGS) install );  \
+               if test $$? != 0 ; then exit 1; fi ;    \
                echo " ";                                                               \
        done
 
@@ -28,6 +31,7 @@ clean-common: FORCE
        @for i in $(SUBDIRS) $(CLEANDIRS); do           \
                echo "  Entering subdirectory $$i";             \
                ( cd $$i; $(MAKE) $(MFLAGS) clean );    \
+               if test $$? != 0 ; then exit 1; fi ;    \
                echo " ";                                                               \
        done
 
@@ -36,6 +40,7 @@ veryclean-common: FORCE
        @for i in $(SUBDIRS) $(CLEANDIRS); do           \
                echo "  Entering subdirectory $$i";             \
                ( cd $$i; $(MAKE) $(MFLAGS) veryclean );        \
+               if test $$? != 0 ; then exit 1; fi ;    \
                echo " ";                                                               \
        done
 
@@ -44,6 +49,7 @@ depend-common: FORCE
        @for i in $(SUBDIRS) $(DEPENDDIRS); do          \
                echo "  Entering subdirectory $$i";             \
                ( cd $$i; $(MAKE) $(MFLAGS) depend );   \
+               if test $$? != 0 ; then exit 1; fi ;    \
                echo " ";                                                               \
        done