diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-05-16 22:03:03 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-05-16 22:03:03 +0200 |
commit | b9f2fcb4ecc5398c3f4a5569a64e2ae256037a13 (patch) | |
tree | 78b22731a3551dcf888b5887f239463ece87c86c /Makefile | |
parent | workflows/jekyll: rsync _site/ to server (diff) | |
download | egor-tensin.github.io-b9f2fcb4ecc5398c3f4a5569a64e2ae256037a13.tar.gz egor-tensin.github.io-b9f2fcb4ecc5398c3f4a5569a64e2ae256037a13.zip |
move deploy command to Makefile
Diffstat (limited to '')
-rw-r--r-- | Makefile | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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 |