From 22e0d07881a8979e5575c1930e6f6d18af701cec Mon Sep 17 00:00:00 2001 From: Liza Shakury Date: Sun, 29 Sep 2024 09:33:21 +0000 Subject: [PATCH 1/3] Create help command to include origin and current make commands --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index b3091d3..b962796 100644 --- a/Makefile +++ b/Makefile @@ -5,4 +5,13 @@ AZURETRE_HOME?="AzureTRE" include $(AZURETRE_HOME)/Makefile +# Get all the help messages from the AzureTRE origin Makefile and the current Makefile +help: ## 💬 This help message :) + @grep -E '[a-zA-Z_-]+:.*?## .*$$' Makefile | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-25s\033[0m %s\n", $$1, $$2}' + @echo "AzureTRE Makefile Commands" + @grep -E '[a-zA-Z_-]+:.*?## .*$$' $(firstword $(AZURETRE_HOME)/Makefile) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-25s\033[0m %s\n", $$1, $$2}' + # Add your make commands down here + +# sample_command: ## Replace this description if you want it to be visible inside the help command +# @echo "This is a sample command" From 23a31028742b87ff4b04434480850f2a7daec018 Mon Sep 17 00:00:00 2001 From: Liza Shakury Date: Mon, 17 Mar 2025 10:50:03 +0000 Subject: [PATCH 2/3] Update description --- Makefile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index b962796..489df30 100644 --- a/Makefile +++ b/Makefile @@ -6,12 +6,11 @@ AZURETRE_HOME?="AzureTRE" include $(AZURETRE_HOME)/Makefile # Get all the help messages from the AzureTRE origin Makefile and the current Makefile -help: ## 💬 This help message :) - @grep -E '[a-zA-Z_-]+:.*?## .*$$' Makefile | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-25s\033[0m %s\n", $$1, $$2}' +help: ## 💬 Custom help command that displays both the repository-specific and AzureTRE help for existing make commands. + @grep -E '^[^#][a-zA-Z_-]+:.*?## .*$$' Makefile | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-25s\033[0m %s\n", $$1, $$2}' @echo "AzureTRE Makefile Commands" - @grep -E '[a-zA-Z_-]+:.*?## .*$$' $(firstword $(AZURETRE_HOME)/Makefile) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-25s\033[0m %s\n", $$1, $$2}' + @grep -E '^[^#][a-zA-Z_-]+:.*?## .*$$' $(firstword $(AZURETRE_HOME)/Makefile) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-25s\033[0m %s\n", $$1, $$2}' # Add your make commands down here - -# sample_command: ## Replace this description if you want it to be visible inside the help command -# @echo "This is a sample command" +sample_command: ## Replace this description with a meaningful one + @echo "This is a sample command" From ea46fd00ae96113ec89448d05009d0af8b1df2ce Mon Sep 17 00:00:00 2001 From: Liza Shakury Date: Mon, 17 Mar 2025 11:06:13 +0000 Subject: [PATCH 3/3] remove duplicate comment --- Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/Makefile b/Makefile index 489df30..5054d14 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,6 @@ AZURETRE_HOME?="AzureTRE" include $(AZURETRE_HOME)/Makefile -# Get all the help messages from the AzureTRE origin Makefile and the current Makefile help: ## 💬 Custom help command that displays both the repository-specific and AzureTRE help for existing make commands. @grep -E '^[^#][a-zA-Z_-]+:.*?## .*$$' Makefile | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-25s\033[0m %s\n", $$1, $$2}' @echo "AzureTRE Makefile Commands"