add upload make target

This commit is contained in:
Rhiannon Morris 2020-07-18 11:55:53 +02:00
parent 789140240c
commit 63d9b5a5cb

View file

@ -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: