From cc89632186d63b2078baf446e44ed1425974be5e Mon Sep 17 00:00:00 2001 From: Marco Wahl Date: Mon, 20 Dec 2021 22:27:50 +0100 Subject: [PATCH] Fix parallel make of docs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * doc/Makefile: Split multiple target "org.texi orgguide.texi". * mk/org-fixup.el (org-make-manual, org-make-guide): New functions. (org-make-manuals): Removed. Reported by Ulrich Müller. https://list.orgmode.org/uee67gr96@gentoo.org/ --- doc/Makefile | 10 ++++++++-- mk/org-fixup.el | 15 ++++++++++----- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/doc/Makefile b/doc/Makefile index 7fb96e65d..5b8639330 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -27,11 +27,17 @@ guide:: orgguide.texi org-version.inc ../mk/guidesplit.pl $@/* endif -org.texi orgguide.texi: org-manual.org org-guide.org +org.texi: org-manual.org org-guide.org $(BATCH) \ --eval '(add-to-list `load-path "../lisp")' \ --eval '(load "../mk/org-fixup.el")' \ - --eval '(org-make-manuals)' + --eval '(org-make-manual)' + +orgguide.texi: org-manual.org org-guide.org + $(BATCH) \ + --eval '(add-to-list `load-path "../lisp")' \ + --eval '(load "../mk/org-fixup.el")' \ + --eval '(org-make-guide)' org-version.inc: org.texi @echo "org-version: $(ORGVERSION) ($(GITVERSION))" diff --git a/mk/org-fixup.el b/mk/org-fixup.el index c0eef23cb..e910f0b52 100644 --- a/mk/org-fixup.el +++ b/mk/org-fixup.el @@ -27,12 +27,17 @@ (require 'autoload) (require 'org-compat "org-compat.el") -(defun org-make-manuals () - "Generate the Texinfo files out of Org manuals." +(defun org-make-manual () + "Generate the Texinfo file out of the Org manual." (require 'ox-texinfo) - (dolist (manual '("../doc/org-manual.org" "../doc/org-guide.org")) - (find-file manual) - (org-texinfo-export-to-texinfo))) + (find-file "../doc/org-manual.org") + (org-texinfo-export-to-texinfo)) + +(defun org-make-guide () + "Generate the Texinfo file out of the Org guide." + (require 'ox-texinfo) + (find-file "../doc/org-guide.org") + (org-texinfo-export-to-texinfo)) (defun org-make-org-version (org-release org-git-version) "Make the file org-version.el in the current directory. -- 2.25.1