From 39241ee7419537ba7e4ba3f737fb8af05552ea73 Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Mon, 22 Jun 2020 15:05:52 +0200 Subject: [PATCH] Feat: clean rsync commands --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 3820f03..8be63a0 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,7 @@ SSH_USER=sshcontent SSH_TARGET_DIR=/var/www SSH_TARGET_DIR=/home/sshcontent/opytex.org/www/ +RSYNC_EXCLUDE=--exclude "pymath" --exclude "opytex" --exclude "enseignements" DEBUG ?= 0 ifeq ($(DEBUG), 1) @@ -83,9 +84,9 @@ ssh_upload: publish rsync_upload: publish #rsync -e "ssh -p $(SSH_PORT)" -P -rvzc --cvs-exclude --delete $(OUTPUTDIR)/ $(SSH_USER)@$(SSH_HOST):$(SSH_TARGET_DIR) - rsync -e "ssh" -P -rvzc --delete --exclude "pymath" --exclude "opytex" $(OUTPUTDIR)/ $(SSH_HOST):$(SSH_TARGET_DIR) --cvs-exclude + rsync -e "ssh" -P -rvzc --delete $(RSYNC_EXCLUDE) $(OUTPUTDIR)/ $(SSH_HOST):$(SSH_TARGET_DIR) --cvs-exclude fake_upload: html - rsync -P -rvzc --delete $(OUTPUTDIR)/ ../output/ --cvs-exclude + rsync -P -rvzc --delete $(RSYNC_EXCLUDE) $(OUTPUTDIR)/ ../output/ --cvs-exclude .PHONY: html help clean regenerate serve serve-global devserver publish ssh_upload rsync_upload