From f355e7e50b7548e0e7bd5ceef3a963c7d76bacc1 Mon Sep 17 00:00:00 2001 From: Imdad Ahad Date: Mon, 20 Feb 2017 11:38:08 +0000 Subject: [PATCH] Remove old target directory and include any dotfiles in the zip --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a5f61e256..71546c7e2 100644 --- a/Makefile +++ b/Makefile @@ -91,8 +91,9 @@ cf-build: dependencies generate-version-file ## Build project .PHONY: build-codedeploy-artifact build-codedeploy-artifact: ## Build the deploy artifact for CodeDeploy + rm -rf target mkdir -p target - zip -r -x@deploy-exclude.lst target/notifications-admin.zip * + zip -y -q -r -x@deploy-exclude.lst target/notifications-admin.zip ./ .PHONY: upload-codedeploy-artifact ## Upload the deploy artifact for CodeDeploy upload-codedeploy-artifact: check-env-vars