add upload make target
This commit is contained in:
parent
789140240c
commit
63d9b5a5cb
1 changed files with 11 additions and 0 deletions
11
Makefile
11
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:
|
||||
|
|
Loading…
Reference in a new issue