[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Fix parallel build failure for Texinfo manual
From: |
Max Nikulin |
Subject: |
Re: [PATCH] Fix parallel build failure for Texinfo manual |
Date: |
Tue, 21 Dec 2021 19:17:20 +0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 |
On 21/12/2021 04:39, Marco Wahl wrote:
Possibly a split of function org-make-manuals in org-make-manual and
org-make-guide and further create two single targets instead of the
current double target is more clear.
Marco, have you considered the following idea (I have not tested it)?
org.texi orgguide.texi:
$(BATCH) \
--eval '(add-to-list `load-path "../lisp")' \
--eval '(load "../mk/org-fixup.el")' \
--eval '(org-to-texi argv)' $<
org.texi: org-manual.org
orgguide.texi: org-guide.org
(defun org-to-texi (org-files)
"Generate the Texinfo files out of Org manuals."
(require 'ox-texinfo)
(dolist (manual org-files)
(find-file manual)
(org-texinfo-export-to-texinfo)))
P.S. Frankly speaking I was surprised that make runs command for every
target, I believed that is a way to specify multiple output files for
recipes. I had to look into info "(make) Multiple Targets" to realize
that I was wrong.