diff --git a/Makefile b/Makefile index 0fb27f1..9e5725f 100644 --- a/Makefile +++ b/Makefile @@ -30,40 +30,40 @@ endef build: ## Builds the project locally. @swift build -c release + +run: ## Runs the project locally. + @swift run -c release + +tests: ## Runs all the test cases of the project. + @swift test --enable-swift-testing install: build ## Installs the built executable into the local system. @install -d $(BINARY_BUILD_FOLDER) @install "$(BINARY_BUILD_FOLDER)/$(BINARY_NAME_EXECUTABLE)" "$(BINARY_INSTALL_FOLDER)" -run: ## Runs the project locally. - @swift run -c release - uninstall: ## Uninstalls the built executable from the local system. @rm -rf "$(BINARY_INSTALL_FOLDER)/$(BINARY_NAME_EXECUTABLE)" -tests: ## Runs all the test cases of the project. - @swift test --enable-swift-testing - # SWIFT PACKAGE MANAGER -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 +update: ## Updates the SPM package dependencies. + @swift package update + +clean: ## Deletes built SPM artifacts from the package. + @swift package clean + reset: ## Resets the complete SPM cache/build folder from the package. @swift package reset -update: ## Updates the SPM package dependencies. - @swift package update +purge: ## Purges the global repository cache. + @swift package purge-cache + +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) # DOCUMENTATION @@ -108,4 +108,4 @@ remove-image: # Removes the generated Docker images help: ## Prints the written documentation for all the defined tasks @awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) -.DEFAULT_GOAL := help \ No newline at end of file +.DEFAULT_GOAL := help