From 4730feae4e61a7198f869596a7401ec6be5d78fc Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 4 Jul 2021 02:10:20 -0700 Subject: [PATCH] Add `deploy' target to send updates to my site --- GNUmakefile | 9 +++++++-- 1 file 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..."