summaryrefslogtreecommitdiffstats
path: root/docs/Makefile
blob: ff7113d595f595fe745a4c6a4ef02c7a61b9fb1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
PANDOC=$(shell which pandoc)
OPTS=-s --smart --toc

all: pdf html

pdf: manual.pdf

html: manual.html

clean:
	rm -f manual.pdf manual.html

manual.pdf: manual.md gen-changelog
	./gen-changelog
	$(PANDOC) $(OPTS) manual.md z-changes-*.md -o manual.pdf
	rm z-changes-*.md

manual.html: manual.md style.css gen-changelog
	./gen-changelog
	$(PANDOC) $(OPTS) manual.md z-changes-*.md -H webfonts.html -c style.css -o manual.html
	rm z-changes-*.md

ifeq ($(PANDOC),)
	$(warning Pandoc not found!)
endif