summaryrefslogtreecommitdiffstats
path: root/docs/Makefile
blob: 7ccaf4333725b048945985998b97e0fd2dc511b6 (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
PANDOC=$(shell which pandoc)
OPTS=-s --smart --toc
MANUAL=manual.md
NEWS=../NEWS
INPUTS=$(MANUAL) $(NEWS)

all: pdf html

pdf: manual.pdf

html: manual.html

clean:
	rm -f manual.pdf manual.html

manual.pdf: $(INPUTS)
	$(PANDOC) $(OPTS) $(INPUTS) --latex-engine=xelatex -o $@

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

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