Add dia
[hvlinux.git] / Makefile
index 2b3202b..cd1e6e7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -12,9 +12,9 @@
 RUN_MODE := $(shell . functions/version && check_hvlinux_version)
 
 ifeq ($(RUN_MODE),HOST)
-  STAGES := "0 1"
+  STAGES := 0 1
 else ifeq ($(RUN_MODE),NATIVE)
-  STAGES := "2 3 4 5"
+  STAGES := 2 3 4 5
 else
   $(error Unable to determine run mode.)
 endif
@@ -27,9 +27,8 @@ ifeq ($(MAKECMDGOALS),test)
 endif
 
 all:
-       @echo "Stages: $(STAGES)"
        @for k in $(STAGES); do \
-         make -C stage$${k} $(MAKECMDGOALS); \
+         make -C stage$${k} $(MAKECMDGOALS) || exit 1; \
         done
 
 $(MAKECMDGOALS): all