mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 12:45:39 +01:00
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>
This commit is contained in:
parent
eb53fffc01
commit
06f0d26240
27
Makefile
27
Makefile
@ -5,17 +5,18 @@ OLDPREFIX=polarssl_
|
|||||||
|
|
||||||
.SILENT:
|
.SILENT:
|
||||||
|
|
||||||
all:
|
all: programs tests
|
||||||
cd library && $(MAKE) all && cd ..
|
|
||||||
cd programs && $(MAKE) all && cd ..
|
|
||||||
cd tests && $(MAKE) all && cd ..
|
|
||||||
|
|
||||||
no_test:
|
no_test: programs
|
||||||
cd library && $(MAKE) all && cd ..
|
|
||||||
cd programs && $(MAKE) all && cd ..
|
programs: lib
|
||||||
|
$(MAKE) -C programs
|
||||||
|
|
||||||
lib:
|
lib:
|
||||||
cd library && $(MAKE) all && cd ..
|
$(MAKE) -C library
|
||||||
|
|
||||||
|
tests: lib
|
||||||
|
$(MAKE) -C tests
|
||||||
|
|
||||||
install:
|
install:
|
||||||
mkdir -p $(DESTDIR)/include/polarssl
|
mkdir -p $(DESTDIR)/include/polarssl
|
||||||
@ -51,13 +52,13 @@ uninstall:
|
|||||||
done
|
done
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
cd library && $(MAKE) clean && cd ..
|
$(MAKE) -C library clean
|
||||||
cd programs && $(MAKE) clean && cd ..
|
$(MAKE) -C programs clean
|
||||||
cd tests && $(MAKE) clean && cd ..
|
$(MAKE) -C tests clean
|
||||||
find . \( -name \*.gcno -o -name \*.gcda -o -name *.info \) -exec rm {} +
|
find . \( -name \*.gcno -o -name \*.gcda -o -name *.info \) -exec rm {} +
|
||||||
|
|
||||||
check: lib
|
check: tests
|
||||||
( cd tests && $(MAKE) && $(MAKE) check )
|
$(MAKE) -C tests check
|
||||||
|
|
||||||
test-ref-configs:
|
test-ref-configs:
|
||||||
tests/scripts/test-ref-configs.pl
|
tests/scripts/test-ref-configs.pl
|
||||||
|
Loading…
Reference in New Issue
Block a user