"make doc" generate "org.texi"

* doc/Makefile (org.texi): New rule.
* mk/org-fixup.el (org-make-manuals): New function.
This commit is contained in:
Nicolas Goaziou 2018-05-09 02:23:10 +02:00
parent d4a8e3de84
commit c87d70439b
2 changed files with 13 additions and 0 deletions

View File

@ -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

View File

@ -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