diff options
| -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 |