From 5abf357e772c1356a12954ffc16b8a3af5fe8abf Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Sat, 24 Dec 2022 17:35:37 +0000 Subject: Add makefile to build documentation --- doc/Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 doc/Makefile diff --git a/doc/Makefile b/doc/Makefile new file mode 100644 index 0000000..ef30253 --- /dev/null +++ b/doc/Makefile @@ -0,0 +1,20 @@ +EMACS := emacs +EMACSQ := $(EMACS) -Q +BATCH := $(EMACSQ) --batch \ + --eval '(setq vc-handled-backends nil org-startup-folded nil org-element-cache-persistent nil)' +TEXI2HTML := makeinfo --html --number-sections --css-ref "https://www.gnu.org/software/emacs/manual.css" +TEXI2PDF := texi2pdf +TEXI2INFO := makeinfo + +%.html: %.texi + $(TEXI2HTML) --no-split -o $@ $< + +%.pdf: %.texi + $(TEXI2PDF) -o $@ $< + +%.info: %.texi + $(TEXI2INFO) -o $@ $< + +org-zettelkasten.texi: org-zettelkasten-manual.org + $(BATCH) --find-file $< --eval "(require 'ox-texinfo)" \ + --eval '(org-texinfo-export-to-texinfo)' -- cgit