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