From 0c5a235138124ebfb34e77ec4daa821fccd6c1a7 Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Thu, 20 Feb 2025 23:46:02 +0100 Subject: [PATCH] Implemented the IDEs tasks in the Makefile file. --- Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Makefile b/Makefile index aaf02c2..88b430a 100644 --- a/Makefile +++ b/Makefile @@ -39,3 +39,21 @@ update: ## Update the SPM package dependencies wipe: clean reset purge ## Wipe all SPM package dependencies and purge the global SPM repository +# OPEN IDEs + +vscode: ## Opens this project with Visual Studio Code + @code . + +xcode: ## Opens this project with Xcode + @open -a Xcode Package.swift + +# HELP + +# Output the documentation for each of the defined tasks when `help` is called. +# Reference: https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html +.PHONY: help + +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