Commit 06f0d262 authored by Alon Bar-Lev's avatar Alon Bar-Lev Committed by Manuel Pégourié-Gonnard

build: Makefile: simplify root Makefile

1. Use $(MAKE) -C

2. Use target dependencies instead of dups.
Signed-off-by: default avatarAlon Bar-Lev <alon.barlev@gmail.com>
parent eb53fffc
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment