From f3847dc668260cbfecf93234014200018e2fe344 Mon Sep 17 00:00:00 2001 From: Andreas Neue Date: Tue, 15 Nov 2022 17:19:28 +0100 Subject: [PATCH] provide $(host) parameter for pre-/post-local.sh --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 79e7638..ac7e900 100644 --- a/Makefile +++ b/Makefile @@ -33,7 +33,9 @@ endif pre-local: ifneq (,$(wildcard pre-local.sh)) @- echo "\n### running pre-local script" - @- sh ./pre-local.sh + @- $(foreach host,$(DEPLOY_HOSTS), \ + sh ./pre-local.sh $(host); \ + ) else @- echo "\n### no pre-local script found" endif @@ -41,7 +43,9 @@ endif post-local: ifneq (,$(wildcard post-local.sh)) @- echo "\n### running post-local script" - @- sh ./post-local.sh + @- $(foreach host,$(DEPLOY_HOSTS), \ + sh ./post-local.sh $(host); \ + ) else @- echo "\n### no post-local script found" endif