Implemented the "pristine" and "purge" tasks in the Makefile file.

This commit is contained in:
Javier Cicchelli 2025-03-18 01:02:37 +01:00
parent c94d024c75
commit 2b1c97d728

View File

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