branch: elpa/with-editor
commit cacb41d6cf925053886533158a3cb0648898ed8f
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>
make: use same export settings as for manual Org exports
---
Makefile | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 8e3f151..c395343 100644
--- a/Makefile
+++ b/Makefile
@@ -65,10 +65,15 @@ info: $(PKG).info dir
html: $(PKG).html
pdf: $(PKG).pdf
+ORG_ARGS = --batch -Q $(ORG_LOAD_PATH) -l ox-extra -l ox-texinfo+.el
+ORG_EVAL = --eval "(ox-extras-activate '(ignore-headlines))"
+ORG_EVAL += --eval "(setq indent-tabs-mode nil)"
+ORG_EVAL += --eval "(setq org-src-preserve-indentation nil)"
+ORG_EVAL += --funcall org-texinfo-export-to-texinfo
+
%.texi: %.org
@printf "Generating $@\n"
- @$(EMACS) -Q --batch $(ORG_LOAD_PATH) \
- -l ox-extra.el -l ox-texinfo+.el $< -f org-texinfo-export-to-texinfo
+ @$(EMACS) $(ORG_ARGS) $< $(ORG_EVAL)
@printf "\n" >> $@
@rm -f $@~