aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2021-07-04 02:10:20 -0700
committerGravatar Tom Willemse2021-07-04 02:10:20 -0700
commit4730feae4e61a7198f869596a7401ec6be5d78fc (patch)
treed2a4a0c70f5d12fc00cf7bd353989f7f8f1d7fd3
parentc9f9a30c2167ec6a47b08a9a32ecf3140c398ec4 (diff)
downloadnew-ryuslash.org-4730feae4e61a7198f869596a7401ec6be5d78fc.tar.gz
new-ryuslash.org-4730feae4e61a7198f869596a7401ec6be5d78fc.zip
Add `deploy' target to send updates to my site
-rw-r--r--GNUmakefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 2b53ece..856874f 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -1,6 +1,11 @@
-.PHONY: publish html css
+.PHONY: publish deploy html css
-site: html css
+publish: html css
+
+deploy:
+ @[[ -e public/index.html ]] || (echo "Run make publish before deploy" && exit 1)
+ rsync --rsh="ssh -p 4511" --verbose --checksum --recursive --delete \
+ public/ ryuslash.org:ryuslash-next/
html:
@echo "Publishing..."