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)