blob: ededfe87da01ba92fe8898519388b9806a249b5b (
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) -o $@
manual.html: $(INPUTS) style.css
$(PANDOC) $(OPTS) $(INPUTS) -H webfonts.html -c style.css -o $@
ifeq ($(PANDOC),)
$(warning Pandoc not found!)
endif
|