add docx support to build process
This commit is contained in:
parent
9bc2903ba2
commit
1d286905e5
8
Makefile
8
Makefile
@ -38,6 +38,12 @@ compile = cd src && ${COMPILER} -shell-escape -file-line-error -synctex=1 \
|
|||||||
@echo " Compiling $*.tex"
|
@echo " Compiling $*.tex"
|
||||||
@cd src && pandoc -f latex -t odt -o ../out/book.odt book.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
|
%.epub: src/%.tex
|
||||||
@echo "Building $*.epub"
|
@echo "Building $*.epub"
|
||||||
@echo " Compiling $*.tex"
|
@echo " Compiling $*.tex"
|
||||||
@ -51,4 +57,4 @@ out/*.nav out/*.run.xml out/*.snm out/*.toc out/*.vrb out/*-blx.bib out/**/
|
|||||||
clean:
|
clean:
|
||||||
@rm -rf out
|
@rm -rf out
|
||||||
|
|
||||||
book: oneside.pdf twosides.pdf ebook.pdf $$@.odt $$@.epub $$@.clean
|
book: oneside.pdf twosides.pdf ebook.pdf $$@.odt $$@.docx $$@.epub $$@.clean
|
||||||
|
Loading…
x
Reference in New Issue
Block a user