From a26e15757900c6bc37d5df661a1dfc1b14abe041 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Mon, 9 Dec 2019 19:13:13 -0800 Subject: [PATCH] make dist: ensure libraries are built --- Makefile | 7 +++++-- fusee/fusee-secondary/Makefile | 10 +++++++--- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 37b6ed48b..a31c044f8 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ ifneq (, $(strip $(shell git status --porcelain 2>/dev/null))) AMSREV := $(AMSREV)-dirty endif -COMPONENTS := fusee stratosphere exosphere thermosphere troposphere +COMPONENTS := fusee stratosphere exosphere thermosphere troposphere libraries all: $(COMPONENTS) @@ -17,7 +17,7 @@ thermosphere: exosphere: thermosphere $(MAKE) -C exosphere all -stratosphere: exosphere +stratosphere: exosphere libraries $(MAKE) -C stratosphere all troposphere: stratosphere @@ -29,6 +29,9 @@ sept: exosphere fusee: exosphere stratosphere sept $(MAKE) -C $@ all +libraries: + $(MAKE) -C libraries all + clean: $(MAKE) -C fusee clean rm -rf out diff --git a/fusee/fusee-secondary/Makefile b/fusee/fusee-secondary/Makefile index 67110da57..243799530 100644 --- a/fusee/fusee-secondary/Makefile +++ b/fusee/fusee-secondary/Makefile @@ -128,7 +128,7 @@ export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \ export LIBPATHS := $(foreach dir,$(LIBDIRS),-L$(dir)/lib) .PHONY: $(BUILD) clean all -.PHONY: check_fusee_primary check_exosphere check_sept check_emummc check_thermosphere check_stratosphere +.PHONY: check_fusee_primary check_exosphere check_sept check_emummc check_thermosphere check_stratosphere check_libraries #--------------------------------------------------------------------------------- all: $(BUILD) @@ -148,11 +148,14 @@ check_emummc: check_thermosphere: @$(MAKE) -C $(AMS)/thermosphere all -check_stratosphere: +check_stratosphere: check_libraries @$(MAKE) -C $(AMS)/stratosphere all +check_libraries: + @$(MAKE) -C $(AMS)/libraries all -$(BUILD): check_fusee_primary check_exosphere check_sept check_emummc check_thermosphere check_stratosphere + +$(BUILD): check_fusee_primary check_exosphere check_sept check_emummc check_thermosphere check_libraries check_stratosphere @[ -d $@ ] || mkdir -p $@ @$(MAKE) --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile @@ -162,6 +165,7 @@ clean: @$(MAKE) -C $(AMS)/fusee/fusee-primary clean @$(MAKE) -C $(AMS)/exosphere clean @$(MAKE) -C $(AMS)/thermosphere clean + @$(MAKE) -C $(AMS)/libraries clean @$(MAKE) -C $(AMS)/stratosphere clean @$(MAKE) -C $(AMS)/sept clean @$(MAKE) -C $(AMS)/emummc clean