From 7309c7f358ab47a2d2d479227da8d4743bc40489 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Tue, 30 Oct 2018 11:25:21 -0700 Subject: [PATCH] atmosphere: improve makefile dependencies --- Makefile | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 51df7192b..c2a88fd4e 100644 --- a/Makefile +++ b/Makefile @@ -4,18 +4,25 @@ ifneq (, $(strip $(shell git status --porcelain 2>/dev/null))) AMSREV := $(AMSREV)-dirty endif -all: fusee creport -fusee: - $(MAKE) -C $@ all +all: fusee stratosphere exosphere thermosphere -creport: - $(MAKE) -C stratosphere/creport all +thermosphere: + $(MAKE) -C thermosphere all + +exosphere: thermosphere + $(MAKE) -C exosphere all + +stratosphere: exosphere + $(MAKE) -C stratosphere all + +fusee: exosphere stratosphere + $(MAKE) -C $@ all clean: $(MAKE) -C fusee clean rm -rf out -dist: fusee creport +dist: all $(eval MAJORVER = $(shell grep '\ATMOSPHERE_RELEASE_VERSION_MAJOR\b' common/include/atmosphere/version.h \ | tr -s [:blank:] \ | cut -d' ' -f3))