From 7b60acd8017444a5db4a41b28b6e64fc4d314df5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 2 Aug 2022 12:57:43 +0200 Subject: [PATCH] Makefile: use variables to point to the webserver This makes it easier to add more rules that also point to the same server and directory on that server. No functional changes. --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1518cc6e..17583f88 100644 --- a/Makefile +++ b/Makefile @@ -30,6 +30,10 @@ FFMPEG_VERSION=5.0.1 TOOLS=./tools TOOLS_DOWNLOAD=./tools/download +# SSH account & hostname for publishing. +WEBSERVER_SSH=flamenco@flamenco.blender.org +WEBSERVER_ROOT=/var/www/flamenco.blender.org + all: application # Install generators and build the software. @@ -208,7 +212,7 @@ clean-webapp-static: project-website: rm -rf web/project-website/public/ cd web/project-website; hugo --baseURL https://flamenco.blender.org/ - rsync web/project-website/public/ flamenco@flamenco.blender.org:/var/www/flamenco.blender.org/ \ + rsync web/project-website/public/ ${WEBSERVER_SSH}:${WEBSERVER_ROOT}/ \ -va \ --exclude v2/ \ --exclude .well-known/ \