aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlon Bar-Lev <alon.barlev@gmail.com>2015-02-18 17:18:28 +0200
committerManuel Pégourié-Gonnard <mpg@elzevir.fr>2015-03-13 13:34:25 +0000
commit06f0d26240f907e2395a45f5194750ca343c5b19 (patch)
tree331abd762f7d538f1ec1edcd2dc9e1e085340c40 /Makefile
parenteb53fffc011fc398cbb306dcdc0fe0cea3e89757 (diff)
downloadmbedtls-06f0d26240f907e2395a45f5194750ca343c5b19.zip
mbedtls-06f0d26240f907e2395a45f5194750ca343c5b19.tar.gz
mbedtls-06f0d26240f907e2395a45f5194750ca343c5b19.tar.bz2
build: Makefile: simplify root Makefile
1. Use $(MAKE) -C 2. Use target dependencies instead of dups. Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile27
1 files changed, 14 insertions, 13 deletions
diff --git a/Makefile b/Makefile
index 808290d..f9a4ce2 100644
--- a/Makefile
+++ b/Makefile
@@ -5,17 +5,18 @@ OLDPREFIX=polarssl_
.SILENT:
-all:
- cd library && $(MAKE) all && cd ..
- cd programs && $(MAKE) all && cd ..
- cd tests && $(MAKE) all && cd ..
+all: programs tests
-no_test:
- cd library && $(MAKE) all && cd ..
- cd programs && $(MAKE) all && cd ..
+no_test: programs
+
+programs: lib
+ $(MAKE) -C programs
lib:
- cd library && $(MAKE) all && cd ..
+ $(MAKE) -C library
+
+tests: lib
+ $(MAKE) -C tests
install:
mkdir -p $(DESTDIR)/include/polarssl
@@ -51,13 +52,13 @@ uninstall:
done
clean:
- cd library && $(MAKE) clean && cd ..
- cd programs && $(MAKE) clean && cd ..
- cd tests && $(MAKE) clean && cd ..
+ $(MAKE) -C library clean
+ $(MAKE) -C programs clean
+ $(MAKE) -C tests clean
find . \( -name \*.gcno -o -name \*.gcda -o -name *.info \) -exec rm {} +
-check: lib
- ( cd tests && $(MAKE) && $(MAKE) check )
+check: tests
+ $(MAKE) -C tests check
test-ref-configs:
tests/scripts/test-ref-configs.pl