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