"exit $?" instead of "exit 1", to keep error codes
authoraland <aland>
Mon, 21 Mar 2005 21:13:06 +0000 (21:13 +0000)
committeraland <aland>
Mon, 21 Mar 2005 21:13:06 +0000 (21:13 +0000)
src/modules/rlm_eap/Makefile.in
src/modules/rlm_eap/types/Makefile

index df37779..5973199 100644 (file)
@@ -24,7 +24,7 @@ all: common
        @$(MAKE) $(MFLAGS) radeapclient
 
 radeapclient: radeapclient.o ../../lib/libradius.la
-       (cd libeap && $(MAKE) $(MFLAGS) $(WHAT_TO_MAKE)) || exit 1
+       (cd libeap && $(MAKE) $(MFLAGS) $(WHAT_TO_MAKE)) || exit $?
        $(LIBTOOL) --mode=link $(CC) $(CFLAGS) ${RLM_CFLAGS} $(LDFLAGS) -o radeapclient radeapclient.o -static $(CLIENTLIBS) $(LIBS) $(LCRYPT)
 
 radeapclient.o: radeapclient.c $(INCLUDES)
@@ -37,7 +37,7 @@ install-types:
 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
 
 ## this uses the RLM_CFLAGS and RLM_LIBS and SRCS defs to make TARGET.
index dd19e1a..dbb6997 100644 (file)
@@ -15,14 +15,14 @@ clean:
 install:
        $(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common
 
+# List tls first, other modules depend on it
 common: 
-       # List tls first, other modules depend on it
        @for mod in rlm_eap_tls rlm_eap*; do \
                what=$(WHAT_TO_MAKE); \
                [ "$$what" = "all" ] && what="$(TARGET_LIBS)"; \
                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