From 8f08822a87a87272da2ca04c940448e1c9826fdc Mon Sep 17 00:00:00 2001 From: Tong Hui Date: Fri, 30 Sep 2016 21:49:58 +0800 Subject: add support for ODT --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Makefile') 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 -- cgit v1.2.3