summaryrefslogtreecommitdiff
path: root/dsg2000/Makefile
blob: 247f5244694f78537dff4d53a6b6e08446659415 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
META   =  title.yml
OUTPUT =  dsg2000.epub dsg2000.pdf dsg2000.mobi dsg2000.azw3
INPUT  =  $(sort $(wildcard art??-par*.md))

all: $(OUTPUT)

dsg2000.epub: $(INPUT) $(META)
	pandoc -f markdown+fancy_lists -t epub3 -o $@ --smart --toc \
		--toc-depth=2 --epub-chapter-level=1 $(META) $(INPUT)

dsg2000.mobi: dsg2000.epub
	ebook-convert $< $@ --mobi-file-type both

dsg2000.azw3: dsg2000.epub
	ebook-convert $< $@

dsg2000.pdf: $(INPUT) $(META)
	pandoc -f markdown+fancy_lists -t latex -o $@ --standalone --smart --toc \
		--toc-depth=2 -Vfontsize=12pt -Vpapersize=a4wide $(META) $(INPUT)

clean:
	rm -rf $(OUTPUT)