summaryrefslogtreecommitdiff
path: root/Makefile
blob: 389cca6ee88a5697e57f4f21311a74c11b42c09b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
SHELL = bash
TARGET = _ewww@web:/srv/http

all: gtdfh.html

gtdfh.html: index.mdwn gtdfh.css Makefile
	pandoc -f markdown+implicit_figures --toc --self-contained -N \
	    --metadata title="GTDFH" --metadata subtitle="Getting Things Done for Hackers" \
	    -H <(echo "<style>"; cat gtdfh.css; echo "</style>") --standalone index.mdwn -o gtdfh.html

publish: all
	mkdir publish
	cp -a gtdfh.html publish/index.html
	cp gtdfh.css publish
	rsync -a --del publish/. $(TARGET)/.
	rm -r publish