change 'cd $dir;foo' to 'cd $dir && foo', as suggested by
authoraland <aland>
Wed, 2 Feb 2000 14:34:15 +0000 (14:34 +0000)
committeraland <aland>
Wed, 2 Feb 2000 14:34:15 +0000 (14:34 +0000)
"Alan Curry" <pacman-radius@cqc.com>.  The second version stops
on errors, while the first version doesn't.

src/Makefile
src/modules/Makefile

index a358d1d..5471562 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 1;\
        done
 
index 8ea0268..51bac46 100644 (file)
@@ -42,5 +42,5 @@ common:
                what=$(WHAT_TO_MAKE); \
                [ "$$what" = "all" ] && what="$(TARGET_LIBS)"; \
                echo "Making $$what in $$mod..."; \
-               (cd $$mod ; $(MAKE) $(MFLAGS) $$what) || exit 1;\
+               (cd $$mod && $(MAKE) $(MFLAGS) $$what) || exit 1;\
        done