Skip to content

Commit

Permalink
Add 'epub' target to Makefile. Epub generation relies on epub.css.
Browse files Browse the repository at this point in the history
  • Loading branch information
davorg committed Aug 17, 2015
1 parent 1f15262 commit b51409e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
@@ -1,6 +1,8 @@

chapters = $(shell cat chapters.txt)

epub: book

book: perlwebbook.epub

mobi: perlwebbook.mobi
Expand All @@ -10,7 +12,7 @@ pdf: perlwebbook.pdf
perlwebbook.mobi: perlwebbook.epub
kindlegen -verbose perlwebbook.epub

perlwebbook.epub: $(chapters)
perlwebbook.epub: $(chapters) epub.css
pandoc -o perlwebbook.epub title.txt $(chapters) --epub-metadata=metadata.xml --toc --toc-depth=2 --epub-stylesheet=epub.css

perlwebbook.pdf: perlwebbook.epub
Expand Down

0 comments on commit b51409e

Please sign in to comment.