From 78b90d4027c8039dcc90a18f541556a084776f91 Mon Sep 17 00:00:00 2001 From: Nemo D'ACREMONT Date: Wed, 7 May 2025 22:01:21 +0200 Subject: [PATCH] feat: add clean in makefile --- Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..27a305d --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +.PHONY += help +help: + @echo -e "\nhelp: show this help page" + @echo "clean: remove all running artifacts (pycache...)" + @echo -e "mrproper: clean and remove all downloaded artifacts (venv, samples, .pt...)\n" + +PHONY += clean +clean: + @echo RM __pycache__ + @$(RM) -r $(shell find . -type d -name "__pycache__") + +PHONY += mrproper +mrproper: clean + @echo RM venv + @$(RM) -r $(shell find . -type d -name "venv") $(shell find . -type d -name ".venv") + @echo RM samples-8x8.json + @$(RM) -r $(shell find . -type f -name "samples-8x8.json*") + @echo RM *.pt + @$(RM) -r $(shell find . -type f -name "*.pt") + +.PHONY: $(PHONY)