]> git.donarmstrong.com Git - lib.git/blob - templates/makefiles/org_to_doc.mk
fix indentation of appt integration
[lib.git] / templates / makefiles / org_to_doc.mk
1 EMACSARGS?=--batch  -l ~/.emacs 
2 EMACS?=emacs
3
4 # The tempdir here is because libreoffice doesn't properly handle two
5 # instances using the same home directory, and will fail if you're
6 # exporting with another libreoffice instance open.
7 $(DOC_TARGETS): %.doc: %.org
8         TEMPDIR="$$(mktemp -d)"; \
9         SYSUSERCONFIG="file://$$TEMPDIR" $(EMACS) $(EMACSARGS) --visit $^ --eval '(setq org-odt-preferred-output-format "doc")' --funcall org-odt-export-to-odt; \
10         rm -rf "$$TEMPDIR";