Browse Source

"make doc" generate "org.texi"

* doc/Makefile (org.texi): New rule.
* mk/org-fixup.el (org-make-manuals): New function.
Nicolas Goaziou 6 years ago
parent
commit
c87d70439b
2 changed files with 13 additions and 0 deletions
  1. 6 0
      doc/Makefile
  2. 7 0
      mk/org-fixup.el

+ 6 - 0
doc/Makefile

@@ -27,6 +27,12 @@ guide::		orgguide.texi org-version.inc
 	../mk/guidesplit.pl $@/*
 endif
 
+org.texi:
+	$(BATCH) \
+	  --eval '(add-to-list '"'"'load-path "../lisp")' \
+	  --eval '(load "../mk/org-fixup.el")' \
+	  --eval '(org-make-manuals)'
+
 org-version.inc:	org.texi
 	@echo "org-version: $(ORGVERSION) ($(GITVERSION))"
 	@echo "@c automatically generated, do not edit"  > org-version.inc

+ 7 - 0
mk/org-fixup.el

@@ -27,6 +27,13 @@
 (require 'autoload)
 (require 'org-compat "org-compat.el")
 
+(defun org-make-manuals ()
+  "Generate the Texinfo files out of Org manuals."
+  (require 'ox-texinfo)
+  (dolist (manual '("../doc/org-manual.org"))
+    (find-file manual)
+    (org-texinfo-export-to-texinfo)))
+
 (defun org-make-org-version (org-release org-git-version odt-dir)
   "Make the file org-version.el in the current directory.
 This function is internally used by the build system and should