summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTong Hui <tonghuix@gmail.com>2016-09-30 21:49:58 +0800
committerTong Hui <tonghuix@gmail.com>2016-09-30 21:49:58 +0800
commit8f08822a87a87272da2ca04c940448e1c9826fdc (patch)
treea5b63334e3a71ae658f243aec3ed96fc7423f19e
parent7bf09e83b31f9824bb3557c481e95c0fa43cdc0d (diff)
downloadfsfs-zh-8f08822a87a87272da2ca04c940448e1c9826fdc.tar.xz
add support for ODT
-rwxr-xr-xMakefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 85716e7..aa2284d 100755
--- a/Makefile
+++ b/Makefile
@@ -64,7 +64,7 @@ APPENDIXS = docs/appendix-a.md \
all: book
-book: epub html pdf
+book: epub html pdf odf
clean:
rm $(BOOKNAME).*
@@ -79,6 +79,8 @@ html: $(BOOKNAME).html
pdf: $(BOOKNAME).pdf
+odf: $(BOOKNAME).odt
+
$(BOOKNAME).epub: $(TITLE) $(PREFACES) $(CHAPTERS) $(APPENDIXS)
cp -r docs/fs-translations/ .
cp docs/*.png .
@@ -114,5 +116,8 @@ define pdfgen
@echo "Done!"
endef
+$(BOOKNAME).odt: $(PREFACES) $(CHAPTERS) $(APPENDIXS)
+ pandoc -t odt -o $@ $^
+
.PHONY: all book clean epub html