summaryrefslogtreecommitdiffstats
path: root/docs/Makefile
blob: 53dc6fd44278fb6b4fc8011892f29d13cd6711d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
	$(PANDOC) $(OPTS) manual.md -o manual.pdf

manual.html: manual.md style.css
	$(PANDOC) $(OPTS) manual.md -H webfonts.html -c style.css -o manual.html

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