upload target

This commit is contained in:
Rhiannon Morris 2021-04-29 19:01:25 +02:00
parent 5b1eb2c388
commit 5583865e27
1 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,8 @@
HOST ?= rhiannon.website
REMOTE_USER ?= www-data
IDFILE ?= ~/.ssh/xyz
REMOTE_DIR ?= lang
TMPDIR ?= _tmp
BUILDDIR ?= _build
PAGESDIR ?= pages
@ -55,6 +60,11 @@ $(LAANTAS_SCRIPT): laantas-script/*.hs laantas-script/laantas-script.cabal
-type f -exec cp {} $(TMPDIR) \;
upload: build
@rsync -rPLzh --delete -e 'ssh -l $(REMOTE_USER) -i $(IDFILE)' \
$(BUILDDIR)/ $(HOST):$(REMOTE_DIR)/
.PHONY: clean distclean
clean: