summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8158b6d..4045d9f 100755
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,7 @@ BOOKNAME = fsfs-zh
TITLE = ebook/title.txt
METADATA = ebook/metadata.xml
TOC = --toc --toc-depth=2 --epub-chapter-level=2
+COVER_IMAGE = docs/cover.png
LATEX_CLASS = book
TEMPLATE=./pdf
PREFACES = docs/foreword-trans.md \
@@ -81,7 +82,7 @@ pdf: $(BOOKNAME).pdf
$(BOOKNAME).epub: $(TITLE) $(PREFACES) $(CHAPTERS) $(APPENDIXS)
cp -r docs/fs-translations/ .
cp docs/*.png .
- pandoc $(TOC) -S --epub-metadata=$(METADATA) -o $@ $^
+ pandoc $(TOC) -S --epub-metadata=$(METADATA) --epub-cover-image=$(COVER_IMAGE) -o $@ $^
rm -fr fs-translations
rm *.png