upload target
This commit is contained in:
parent
5b1eb2c388
commit
5583865e27
1 changed files with 10 additions and 0 deletions
10
Makefile
10
Makefile
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue