X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=Makefile;h=37a233601f44bf93a2f7a4d017b702154b666cbd;hb=refs%2Fheads%2Flatest;hp=2b3202befd1436a24cde10549e21afab2b1f7207;hpb=9b734560ce02e626f7ea58ea9153b5e8daa00831;p=hvlinux.git diff --git a/Makefile b/Makefile index 2b3202b..37a2336 100644 --- a/Makefile +++ b/Makefile @@ -7,14 +7,14 @@ # dep # list -> list installed packages and versions -.PHONY: get test +.PHONY: get test log 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 @@ -25,11 +25,13 @@ endif ifeq ($(MAKECMDGOALS),test) STAGES := $(shell seq 0 5) endif +ifeq ($(MAKECMDGOALS),log) + STAGES := $(shell seq 2 5) +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