diff options
author | Yann Herklotz <git@yannherklotz.com> | 2022-12-24 17:35:37 +0000 |
---|---|---|
committer | Yann Herklotz <git@yannherklotz.com> | 2022-12-24 17:35:37 +0000 |
commit | 5abf357e772c1356a12954ffc16b8a3af5fe8abf (patch) | |
tree | 78ae9a4d9b5e131b11731d2d62ba2c80e47a24cc | |
parent | e945db768312a39b14acfc9a9cb58f08c622c643 (diff) | |
download | org-zettelkasten-5abf357e772c1356a12954ffc16b8a3af5fe8abf.tar.gz org-zettelkasten-5abf357e772c1356a12954ffc16b8a3af5fe8abf.zip |
Add makefile to build documentation
-rw-r--r-- | doc/Makefile | 20 |
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)' |