aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-05-07 13:49:07 +0200
committerpespin <pespin@sysmocom.de>2020-05-07 13:27:55 +0000
commit94e7ef0f6c0314f9a827ac6cd344a3a8f60d397a (patch)
tree35104b6b1b123ba688f854d354557e95fc324578
parent3135a1ae7eb09d939b5d192eb864c60909cf3439 (diff)
Makefile: Implement clean target
-rw-r--r--Makefile6
-rw-r--r--selftest/Makefile5
2 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ee6300e..c36aa9a 100644
--- a/Makefile
+++ b/Makefile
@@ -15,4 +15,10 @@ check:
$(MAKE) -C selftest check
@echo "make check: success"
+clean:
+ $(MAKE) -C selftest clean
+ $(MAKE) -C doc/manuals clean
+ @find . -name "*__pycache__" -type d -print0 | xargs -0 rm -rvf
+ @rm -fv ./src/osmo_gsm_tester/_version.py
+ @rm -fv ./version
# vim: noexpandtab tabstop=8 shiftwidth=8
diff --git a/selftest/Makefile b/selftest/Makefile
index f0c8c69..fb8618c 100644
--- a/selftest/Makefile
+++ b/selftest/Makefile
@@ -9,4 +9,9 @@ update:
set_pythonpath:
echo "export PYTHONPATH=\"$(PWD)/../src\"" > set_pythonpath
+clean:
+ @find . -name "*__pycache__" -type d -print0 | xargs -0 rm -rvf
+ @find . -name "*test_work" -type d -print0 | xargs -0 rm -rvf
+ @rm -fv ./set_pythonpath
+
# vim: noexpandtab tabstop=8 shiftwidth=8