From 2b1c97d728a69d06e26a8e169f8c3a3fbd9a46ec Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Tue, 18 Mar 2025 01:02:37 +0100 Subject: [PATCH] Implemented the "pristine" and "purge" tasks in the Makefile file. --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index 6ba0fb2..f71eb41 100644 --- a/Makefile +++ b/Makefile @@ -39,6 +39,13 @@ tests: ## Runs all the test cases of the project. clean: ## Deletes built SPM artifacts from the package. @swift package clean +pristine: clean reset purge ## Cleans up all built archifacts and generated documentations from the project. + @rm -drf $(DOCC_ARCHIVES_FOLDER)/$(DOCC_ARCHIVES) + @rm -drf $(DOCC_TEST_FOLDER)/$(DOCC_ARCHIVES) + +purge: ## Purges the global repository cache. + @swift package purge-cache + outdated: ## Lists the SPM package dependencies that can be updated. @swift package update --dry-run