diff --git a/Makefile b/Makefile index d98ea1f..5af46b6 100644 --- a/Makefile +++ b/Makefile @@ -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: