diff options
| author | Robert Günzler <r@gnzler.io> | 2025-01-02 01:00:04 +0100 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2025-01-02 01:00:04 +0100 |
| commit | 24ba83f2b1d5a2e298f4adcc319882b06f7acb06 (patch) | |
| tree | ce62f4c2636f78334e546aefced335c1bb0ce9cf | |
| parent | c8284324e2f8c1597bdafe78233ecbebc68dc008 (diff) | |
| download | site-24ba83f2b1d5a2e298f4adcc319882b06f7acb06.tar.gz | |
move deploy to separate mk file
Signed-off-by: Robert Günzler <r@gnzler.io>
| -rw-r--r-- | makefile | 5 | ||||
| -rw-r--r-- | webdeploy.mk | 7 |
2 files changed, 9 insertions, 3 deletions
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 |