From acd9d93964d67e2a368ecbb101bb06cc4e57b0bc Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Wed, 10 Sep 2025 21:19:50 +0200 Subject: [PATCH] Improved the naming for the existing tasks in the Makefile file. --- Makefile | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 63b5ff9..2533eea 100644 --- a/Makefile +++ b/Makefile @@ -17,13 +17,11 @@ environment ?= .env include $(environment) export $(shell sed 's/=.*//' $(environment)) -# SWIFT PACKAGE MANAGER +# LIBRARY -package-build: ## Builds the project locally +lib-build: ## Builds the project locally @swift build -package-clean: ## Deletes built SPM artifacts from the package - @swift package clean lib-test: ## Runs the tests of the library @swift test \ --disable-xctest \ @@ -31,13 +29,22 @@ lib-test: ## Runs the tests of the library --enable-swift-testing \ --parallel -package-outdated: ## Lists the SPM package dependencies that can be updated - @swift package update --dry-run +# SWIFT PACKAGE MANAGER -package-reset: ## Resets the complete SPM cache/build folder from the package +pkg-clean: ## Deletes built SPM artifacts of the package + @swift package clean + +pkg-reset: ## Resets the complete SPM cache/build folder of the package @swift package reset -package-update: ## Updates the SPM package dependencies +pkg-pristine: pkg-clean pkg-reset ## Deletes all built artifacts, caches, and documentations of the package + @rm -drf $(DOCC_GITHUB_OUTPUT) + @rm -drf $(DOCC_XCODE_OUTPUT) + +pkg-outdated: ## Lists the SPM package dependencies that can be updated + @swift package update --dry-run + +pkg-update: ## Updates the SPM package dependencies @swift package update # DOCUMENTATION @@ -70,10 +77,10 @@ doc-preview: ## Previews the library documentation in Safari # IDE -open-in-xcode: ## Opens this package with Xcode +ide-xcode: ## Opens this package with Xcode @open -a Xcode Package.swift -open-in-vscode: ## Opens this package with Visual Studio Code +ide-vscode: ## Opens this package with Visual Studio Code @code . # HELP