summaryrefslogtreecommitdiff
path: root/dsg2000/Makefile
blob: 9dff22d6587b7cf17543cb8e8a7f3cc66a030a69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
META   =  title.yml
OUTPUT =  dsg2000.epub
INPUT  =  $(sort $(wildcard art??-par*.md))

all: $(OUTPUT)

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

mobi: $(OUTPUT)
	kindlegen $(OUTPUT) -c2 -o $(OUTPUT:.epub=.mobi)


clean:
	rm -rf $(OUTPUT) $(OUTPUT:.epub=.mobi)