emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Fix parallel build failure for Texinfo manual


From: Marco Wahl
Subject: Re: [PATCH] Fix parallel build failure for Texinfo manual
Date: Tue, 21 Dec 2021 13:48:18 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Hi Max!

Max Nikulin <manikulin@gmail.com> writes:

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

Thanks for the idea.  I did not think about the issue this way.

>From my point of view using singuar targets for org.texi and
orgguide.texi is the clearest path to go.  

I already committed a fix along these lines.  (Hopefully it's okay.)

Please let me know if I missed something.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]