feat: add clean in makefile

This commit is contained in:
Nemo D'ACREMONT 2025-05-07 22:01:21 +02:00
parent 7ce57543dc
commit 78b90d4027
No known key found for this signature in database
GPG Key ID: 85F245EC3BB1E022

21
Makefile Normal file
View File

@ -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)