summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/Makefile20
1 files changed, 20 insertions, 0 deletions
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)'