aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c0214f0..2c9f077 100644
--- a/Makefile
+++ b/Makefile
@@ -50,3 +50,15 @@ wget:
.PHONY: view
view:
xdg-open '$(call escape,$(URL))' &> /dev/null
+
+REMOTE_USER ?= who
+REMOTE_HOST ?= where
+REMOTE_DIR ?= /path/to/dir
+
+$(eval $(call noexpand,REMOTE_USER))
+$(eval $(call noexpand,REMOTE_HOST))
+$(eval $(call noexpand,REMOTE_DIR))
+
+.PHONY: deploy
+deploy:
+ rsync -avh -e 'ssh -o StrictHostKeyChecking=no' _site/ '$(call escape,$(REMOTE_USER)@$(REMOTE_HOST):$(REMOTE_DIR)/)' --delete