X-Git-Url: https://git.shemshak.org/~bandali/bndl.org/blobdiff_plain/dd631811ce6c10d21b019568709f4b32db3227e8..38037201dbf3f00be325989475299157654ba9da:/Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..35f5ebb --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +BASE_DIR = $(CURDIR) +OUT_DIR = $(BASE_DIR)/site + +RSYNC_PARAMS = --exclude-from='.rsync-exclude' --delete -avzP + +SSH_USER = amin@shemshak.org +SSH_DEST = /var/www/bandali.eu.org/ + +all: build + +build: + haunt build + +watch: build + haunt serve --watch + +deploy: + rsync $(RSYNC_PARAMS) $(OUT_DIR) $(SSH_USER):$(SSH_DEST) + +clean: + [ ! -d $(OUT_DIR) ] || rm -rf $(OUT_DIR)