aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGareth McMullin2011-03-14 16:45:17 +1300
committerGareth McMullin2011-03-14 16:45:17 +1300
commit7faea389e8ba002e1c3c7604eaaa916fad583179 (patch)
treec893d2c6cdc918ca16dd697d6923bff806e26b31 /Makefile
parent95286a22f0bb6a822b4d2a62611bcc7b2c2daa8b (diff)
Added dependency generation. Abort loops on error.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 9f3be8d..fe8db6a 100644
--- a/Makefile
+++ b/Makefile
@@ -41,7 +41,7 @@ lib:
$(Q)for i in $(addprefix $@/,$(TARGETS)); do \
if [ -d $$i ]; then \
printf " BUILD $$i\n"; \
- $(MAKE) -C $$i; \
+ $(MAKE) -C $$i || exit $?; \
fi; \
done
@@ -49,7 +49,7 @@ examples:
$(Q)for i in $(addsuffix /*/*,$(addprefix $@/,$(TARGETS))); do \
if [ -d $$i ]; then \
printf " BUILD $$i\n"; \
- $(MAKE) -C $$i; \
+ $(MAKE) -C $$i || exit $?; \
fi; \
done
@@ -68,7 +68,7 @@ clean:
$(addsuffix /*/*,$(addprefix examples/,$(TARGETS))); do \
if [ -d $$i ]; then \
printf " CLEAN $$i\n"; \
- $(MAKE) -C $$i clean; \
+ $(MAKE) -C $$i clean || exit $?; \
fi; \
done