Publish PDF as book format, add epub

This commit is contained in:
Matt Soucy
2018-11-03 17:31:44 -04:00
parent 13dd60986c
commit c9e6b6a8a7
6 changed files with 35 additions and 5 deletions

View File

@ -1,11 +1,14 @@
chapter-sort = $(shell echo -e $(subst $(sp),'\n',$2) | sort $1 --key=1,1 -)
books : Book1.pdf
books : Book1.pdf Book1.epub
Book1.pdf : $(call chapter-sort,-n,$(wildcard Book-1/*.md))
pandoc $^ -o $@
Book1.epub : $(call chapter-sort,-n,$(wildcard Book-1/*.md))
pandoc $^ -o $@
clean:
rm -rf Book1.pdf