'exit 1' to 'exit $?', which is better
authoraland <aland>
Mon, 11 Apr 2005 21:22:10 +0000 (21:22 +0000)
committeraland <aland>
Mon, 11 Apr 2005 21:22:10 +0000 (21:22 +0000)
Makefile
doc/Makefile
src/Makefile
src/modules/Makefile
src/modules/rlm_sql/Makefile.in

index 03ecfb7..7778316 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -62,7 +62,7 @@ install:
 common:
        @for dir in $(SUBDIRS); do \
                echo "Making $(WHAT_TO_MAKE) in $$dir..."; \
-               (cd $$dir && $(MAKE) $(MFLAGS) $(WHAT_TO_MAKE)) || exit 1;\
+               (cd $$dir && $(MAKE) $(MFLAGS) $(WHAT_TO_MAKE)) || exit $?;\
        done
 
 distclean: clean
index 7edb262..937720f 100644 (file)
@@ -30,5 +30,5 @@ install:
 common:
        @for dir in $(SUBDIRS); do \
                echo "Making $(WHAT_TO_MAKE) in $$dir..."; \
-               (cd $$dir && $(MAKE) $(MFLAGS) $(WHAT_TO_MAKE)) || exit 1;\
+               (cd $$dir && $(MAKE) $(MFLAGS) $(WHAT_TO_MAKE)) || exit $?;\
        done
index 19dee9c..09b70f7 100644 (file)
@@ -22,6 +22,6 @@ install:
 common:
        @for dir in $(SUBDIRS); do \
                echo "Making $(WHAT_TO_MAKE) in $$dir..."; \
-               (cd $$dir && $(MAKE) $(MFLAGS) $(WHAT_TO_MAKE)) || exit 1;\
+               (cd $$dir && $(MAKE) $(MFLAGS) $(WHAT_TO_MAKE)) || exit $?;\
        done
 
index 2cc3940..571bb2c 100644 (file)
@@ -40,6 +40,6 @@ common:
                what=$(WHAT_TO_MAKE); \
                if [ -d $$mod ] && [ -f $$mod/Makefile ]; then \
                        echo "Making $$what in $$mod..."; \
-                       (cd $$mod && $(MAKE) $(MFLAGS) $$what) || exit 1;\
+                       (cd $$mod && $(MAKE) $(MFLAGS) $$what) || exit $?;\
                fi; \
        done
index 5abe9d0..f094cf8 100644 (file)
@@ -32,7 +32,7 @@ install-drivers:
 common: 
        @for dir in $(RLM_SUBDIRS); do \
                echo "Making $(WHAT_TO_MAKE) in $$dir..."; \
-               (cd $$dir && $(MAKE) $(MFLAGS) $(WHAT_TO_MAKE)) || exit 1;\
+               (cd $$dir && $(MAKE) $(MFLAGS) $(WHAT_TO_MAKE)) || exit $?;\
        done
 
 include ../rules.mak