From cc2fcb1408cd2086337b63b58e8f24ce2c50fc1c Mon Sep 17 00:00:00 2001 From: Paride Legovini Date: Tue, 7 Jul 2020 11:05:58 +0200 Subject: Makefile: add testclean target The target calls `make clean` in the test submodule, if present. The target is called by the `distclean` target. --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a906f58..bf0e62b 100644 --- a/Makefile +++ b/Makefile @@ -121,11 +121,15 @@ test: [ -e test/Makefile ] || $(MAKE) test-update @$(MAKE) -C test +testclean: + @echo cleaning the test artifacts + [ ! -e test/Makefile ] || $(MAKE) -C test clean + clean: @echo cleaning @rm -f $(ELF) vis-single vis-single-payload.inc vis-*.tar.gz *.gcov *.gcda *.gcno -distclean: clean +distclean: clean testclean @echo cleaning build configuration @rm -f config.h config.mk -- cgit v1.2.3