From 1d286905e543a7a28b523a2e7b8a09da7b2c57b5 Mon Sep 17 00:00:00 2001 From: Arindy Date: Sun, 21 Sep 2025 18:08:45 +0200 Subject: [PATCH] add docx support to build process --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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