Makefile changes

* Make dist-no-debug the default build target
* Remove repeating recipe into common recipe for the components
This commit is contained in:
eXhumer 2020-06-05 23:18:13 -06:00
parent 71e0102f7a
commit 8fee841914
No known key found for this signature in database
GPG key ID: 068C85F7D5DC3FA5

View file

@ -9,31 +9,18 @@ endif
COMPONENTS := fusee stratosphere mesosphere exosphere thermosphere troposphere libraries
dist-no-debug: all
dist: dist-no-debug
all: $(COMPONENTS)
thermosphere:
$(MAKE) -C thermosphere all
exosphere: thermosphere
$(MAKE) -C exosphere all
stratosphere: exosphere libraries
$(MAKE) -C stratosphere all
mesosphere: exosphere libraries
$(MAKE) -C mesosphere all
troposphere: stratosphere
$(MAKE) -C troposphere all
sept: exosphere
$(MAKE) -C sept all
fusee: exosphere mesosphere stratosphere sept
$(MAKE) -C $@ all
stratosphere: exosphere libraries
mesosphere: exosphere libraries
troposphere: stratosphere
exosphere: thermosphere
sept: exosphere
libraries:
$(MAKE) -C libraries all
$(COMPONENTS):
$(MAKE) -C $@ all
clean:
$(MAKE) -C fusee clean
@ -143,5 +130,4 @@ dist: dist-no-debug
rm -r atmosphere-$(AMSVER)-debug
mv atmosphere-$(AMSVER)-debug.zip out/atmosphere-$(AMSVER)-debug.zip
.PHONY: $(TOPTARGETS) $(COMPONENTS)
.PHONY: $(TOPTARGETS) $(COMPONENTS)