upload target

This commit is contained in:
Rhiannon Morris 2021-04-29 19:01:25 +02:00
parent 5b1eb2c388
commit 5583865e27

View file

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