From 56a4e91b9e9b87c33a51ce9b4bd75c76115f5452 Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Thu, 20 Feb 2025 23:45:32 +0100 Subject: [PATCH] Implemented the package management tasks in the Makefile file. --- Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Makefile b/Makefile index 4d433b4..aaf02c2 100644 --- a/Makefile +++ b/Makefile @@ -20,3 +20,22 @@ install: build ## Install the built executable into the system uninstall: ## Uninstall the built executable from the system @rm -rf "$(BINARY_FOLDER)/$(EXECUTABLE_FILE)" +# PACKAGE MANAGEMENT + +clean: ## Delete built SPM artifacts from the package + @swift package clean + +outdated: ## List the SPM package dependencies that can be updated + @swift package update --dry-run + +purge: ## Purge the global SPM package repository + @swift package purge-cache + +reset: ## Reset the complete SPM cache/build folder from the package + @swift package reset + +update: ## Update the SPM package dependencies + @swift package update + +wipe: clean reset purge ## Wipe all SPM package dependencies and purge the global SPM repository +