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: