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

all: pdf html

pdf: manual.pdf

html: manual.html

clean:
	rm -f manual.pdf manual.html

manual.pdf: manual.md
	$(MD2PDF) -o manual.pdf	manual.md

manual.html: manual.md
	$(PANDOC) $(OPTS) manual.md -o manual.html

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