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.
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) )