From 63d9b5a5cbc86cfb2bbc9601574393a9d6e2ef3d Mon Sep 17 00:00:00 2001 From: Rhiannon Morris Date: Sat, 18 Jul 2020 11:55:53 +0200 Subject: [PATCH] add upload make target --- Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Makefile b/Makefile index 26abfc1..8e9dff0 100644 --- a/Makefile +++ b/Makefile @@ -78,4 +78,15 @@ distclean: clean echo "[distclean]" rm -rf dist-newstyle + +HOST ?= gallery.niss.website +REMOTE_USER ?= www-data +IDFILE ?= ~/.ssh/xyz +REMOTE_DIR ?= gallery + +upload: $(BUILDDIR)/index.html + @rsync -rPLzh --delete -e 'ssh -l $(REMOTE_USER) -i $(IDFILE)' \ + $(BUILDDIR)/ $(HOST):$(REMOTE_DIR)/ + + .SILENT: