From 24ba83f2b1d5a2e298f4adcc319882b06f7acb06 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Thu, 2 Jan 2025 01:00:04 +0100 Subject: move deploy to separate mk file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert Günzler --- makefile | 5 ++--- webdeploy.mk | 7 +++++++ 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 webdeploy.mk diff --git a/makefile b/makefile index 8242081..5fa2700 100644 --- a/makefile +++ b/makefile @@ -41,7 +41,6 @@ serve: watch-and-serve: @ ${MAKE} -j2 watch serve -deploy: run - @ rsync -vhhh --delete -Ccrz ./ $(DEPLOY_HOST):$(DEPLOY_DIR)/ - .PHONY: all clean serve watch watch-and-serve + +include webdeploy.mk diff --git a/webdeploy.mk b/webdeploy.mk new file mode 100644 index 0000000..ea467b3 --- /dev/null +++ b/webdeploy.mk @@ -0,0 +1,7 @@ +DEPLOY_HOST ?= +DEPLOY_DIR ?= /var/www/ + +webdeploy: + @ rsync -vhhh --delete -Ccrz ./ $(DEPLOY_HOST):$(DEPLOY_DIR)/ + +.PHONY: webdeploy -- cgit 1.4.1