category-theory-for-program.../makefile

20 lines
537 B
Makefile
Raw Normal View History

2017-09-05 16:02:17 +02:00
title = 'category-theory-for-programmers'
root = $(shell pwd)
src = $(root)/src
2017-09-06 02:14:05 +02:00
chapters = $(shell find $(src)/part-* -name '*.html' | sort -V)
2017-09-05 16:02:17 +02:00
2017-09-06 02:14:05 +02:00
book:
cd $(src)/init; \
pandoc \
$(src)/init/preface.html \
$(chapters) \
--smart \
--toc \
--number-section \
--epub-stylesheet=$(root)/pandoc/style.css \
--epub-cover-image=$(root)/pandoc/cover.png \
--epub-embed-font='$(src)/fonts/*.woff' \
2017-09-05 16:02:17 +02:00
-o $(root)/$(title).epub