From 8770b6ecd5b308ceecf0aa30f9fb651ee9087ba5 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Tue, 29 Sep 2020 15:02:57 -0700 Subject: [PATCH] Makefile: Fix DO_NOT_DEPLOY implementation to work with multiple files The --exclude option to rsync expects a single file, so we need to arrange to pass it multiple times if we have multiple files in the value of the DO_NOT_DEPLOY variable. Fortunately, this is a perfect job for patsubst. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d0719d8..3d10512 100644 --- a/Makefile +++ b/Makefile @@ -64,7 +64,7 @@ deploy: make -C .deploy-source turbot.wsgi (cd .deploy-source; rsync -avz \ $(DO_NOT_DEPLOY:%=--exclude=%) \ - --exclude=$(DO_NOT_DELETE) \ + $(patsubst %,--exclude %,$(DO_NOT_DELETE)) \ --delete \ --delete-after \ ./ $(DEPLOY_HOST):$(DEPLOY_DIR) ) -- 2.43.0