"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:
parent
d4a8e3de84
commit
c87d70439b
2 changed files with 13 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue