ec53b4732cfd74bec1a3451032fcfa3c3ff40b69
[website] / Makefile
1 FILES = ./index.html.sh ./about.html.sh ./blog.html.sh
2 POSTS = $(shell find blog -type f -name '*.md')
3 FILESOUT = $(patsubst %.html.sh, %.html, $(FILES))
4 POSTSOUT = $(patsubst %.md, %.html, $(POSTS))
5
6 site: $(FILESOUT) $(POSTSOUT) robots.txt
7
8 ./%.html : ./%.html.sh ./lib.sh
9 inspr "$<" | bash | tee "$@" >/dev/null
10
11 blog/%.html : blog/%.md ./blog.sh ./lib.sh
12 ./blog.sh "$<" | tee "$@" >/dev/null
13
14 robots.txt: robots.txt.sh
15 inspr robots.txt.sh | bash | tee robots.txt >/dev/null
16
17 push:
18 rsync --exclude-from=rsync-excludes -ruzv -e "ssh -p 993" \
19 ./ mi@boxin.space:/var/www/
20
21 clean:
22 rm $(FILESOUT) $(POSTSOUT) robots.txt