diff --git a/Makefile b/Makefile index 1977c10..b89f36e 100644 --- a/Makefile +++ b/Makefile @@ -38,6 +38,12 @@ compile = cd src && ${COMPILER} -shell-escape -file-line-error -synctex=1 \ @echo " Compiling $*.tex" @cd src && pandoc -f latex -t odt -o ../out/book.odt book.tex + +%.docx: src/%.tex + @echo "Building $*.odt" + @echo " Compiling $*.tex" + @cd src && pandoc -s book.tex -o ../out/book.docx + %.epub: src/%.tex @echo "Building $*.epub" @echo " Compiling $*.tex" @@ -51,4 +57,4 @@ out/*.nav out/*.run.xml out/*.snm out/*.toc out/*.vrb out/*-blx.bib out/**/ clean: @rm -rf out -book: oneside.pdf twosides.pdf ebook.pdf $$@.odt $$@.epub $$@.clean +book: oneside.pdf twosides.pdf ebook.pdf $$@.odt $$@.docx $$@.epub $$@.clean