summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJ08nY2017-04-05 12:52:19 +0200
committerJ08nY2017-04-05 13:11:01 +0200
commit9ad9770e8f16d654cfef2fffa2776a186f7c4b3b (patch)
treeedb7b0a885e3a84272b1abcdaddbd14eb5f396c4 /Makefile
parent2bcb800524eff712bf9c0789be90a5798e322b6d (diff)
downloadecgen-9ad9770e8f16d654cfef2fffa2776a186f7c4b3b.tar.gz
ecgen-9ad9770e8f16d654cfef2fffa2776a186f7c4b3b.tar.zst
ecgen-9ad9770e8f16d654cfef2fffa2776a186f7c4b3b.zip
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 252c075..b35ff7c 100644
--- a/Makefile
+++ b/Makefile
@@ -9,9 +9,12 @@ all:
+$(MAKE) -C src all
clean:
- +$(MAKE) -C lib clean
+$(MAKE) -C src clean
+clean-all:
+ +$(MAKE) -C lib clean
+ +$(MAKE) -C src clean-all
+
docs:
doxygen Doxyfile
@@ -21,17 +24,15 @@ help:
@echo "Available targets:"
@echo " - all : builds all"
@echo " - ecgen : builds the main binary"
- @echo " - gp2c : generates the .c and .h files from gp code"
@echo " - docs : generate doxygen docs"
@echo " - clean : cleans up after a build"
- @echo " - clean-gp : cleans up after gp2c generation"
@echo " - clean-all : cleans all"
@echo " - format : run clang-format on source files"
@echo " - help : print this help"
.PHONY: all docs help
-ifeq (, $(filter all clean docs help, $(MAKECMDGOALS)))
+ifeq (, $(filter all clean clean-all docs help, $(MAKECMDGOALS)))
# Just pass all targets to a Makefile in src
$(MAKECMDGOALS):
+$(MAKE) -C src $@