aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParide Legovini <paride@debian.org>2020-07-07 11:05:58 +0200
committerParide Legovini <paride@debian.org>2020-07-07 11:05:58 +0200
commitcc2fcb1408cd2086337b63b58e8f24ce2c50fc1c (patch)
treeb89f41c6eb45e3ccf989458df08fe703fb7fd5f2
parent8f5dabbf4db56a71b152b1677c9c3456886a307b (diff)
downloadvis-cc2fcb1408cd2086337b63b58e8f24ce2c50fc1c.tar.gz
vis-cc2fcb1408cd2086337b63b58e8f24ce2c50fc1c.tar.xz
Makefile: add testclean target
The target calls `make clean` in the test submodule, if present. The target is called by the `distclean` target.
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
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