From e55a7bef2619846a15617de684dc2d658caf0954 Mon Sep 17 00:00:00 2001 From: Nico Elayda Date: Sat, 26 Jan 2019 01:33:35 +0800 Subject: [PATCH] Add component subdirectories to root Makefile's .PHONY --- Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 8b85264f5..af0c8ac6b 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,9 @@ ifneq (, $(strip $(shell git status --porcelain 2>/dev/null))) AMSREV := $(AMSREV)-dirty endif -all: fusee stratosphere exosphere thermosphere troposphere +COMPONENTS := fusee stratosphere exosphere thermosphere troposphere + +all: $(COMPONENTS) thermosphere: $(MAKE) -C thermosphere all @@ -26,7 +28,7 @@ fusee: exosphere stratosphere clean: $(MAKE) -C fusee clean rm -rf out - + dist: all $(eval MAJORVER = $(shell grep '\ATMOSPHERE_RELEASE_VERSION_MAJOR\b' common/include/atmosphere/version.h \ | tr -s [:blank:] \ @@ -63,6 +65,6 @@ dist: all mkdir out mv atmosphere-$(AMSVER).zip out/atmosphere-$(AMSVER).zip cp fusee/fusee-primary/fusee-primary.bin out/fusee-primary.bin - -.PHONY: $(TOPTARGETS) fusee + +.PHONY: $(TOPTARGETS) $(COMPONENTS)