small Makefile fixes
[~bandali/bndl.org] / Makefile
1 BASE_DIR = $(CURDIR)
2 OUT_DIR = $(BASE_DIR)/site/
3
4 RSYNC_PARAMS = --exclude-from='.rsync-exclude' --delete -avzP
5
6 SSH_USER = amin@shemshak.org
7 SSH_DEST = /var/www/bandali.eu.org/
8
9 all: build
10
11 build:
12 haunt build
13
14 watch: build
15 haunt serve --watch
16
17 deploy:
18 rsync $(RSYNC_PARAMS) $(OUT_DIR) $(SSH_USER):$(SSH_DEST)
19
20 clean:
21 [ ! -d $(OUT_DIR) ] || rm -rf $(OUT_DIR)
22
23 .PHONY: clean deploy