From: Carl Worth Date: Tue, 29 Sep 2020 22:02:57 +0000 (-0700) Subject: Makefile: Fix DO_NOT_DEPLOY implementation to work with multiple files X-Git-Url: https://git.cworth.org/git?p=turbot;a=commitdiff_plain;h=8770b6ecd5b308ceecf0aa30f9fb651ee9087ba5 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. --- 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) )