From: Mathieu Lirzin <mthl@gnu.org>
To: Chris Marusich <cmmarusich@gmail.com>
Cc: 29727@debbugs.gnu.org
Subject: bug#29727: changing contributing.texi does not trigger rebuild of “info” target
Date: Wed, 17 Jan 2018 13:20:08 +0100 [thread overview]
Message-ID: <873734k77r.fsf@gnu.org> (raw)
In-Reply-To: <876081gcxe.fsf@gmail.com> (Chris Marusich's message of "Tue, 16 Jan 2018 23:30:21 -0800")
Hello,
Chris Marusich <cmmarusich@gmail.com> writes:
> Mathieu Lirzin <mthl@gnu.org> writes:
>
>> info_TEXINFOS = %D%/guix.texi
>>
>> +%C%_guix_TEXINFOS = \
>> + %D%/contributing.texi \
>> + %D%/fdl-1.3.texi
>
> Why is the %C% required here? What does it do? I read (automake)
> Texinfo, so I understand that this is probably a way to tell Automake
> that guix.texi depends on contributing.texi and fdl-1.3.texi, but I
> don't understand why %C% is present in the variable name here.
Indeed this is can be hard to grasp.
A variable like ‘doc_foo_TEXINFOS’ declares the dependencies of
‘doc/foo.texi’ which must be declared in the special ‘info_TEXINFOS’
variable to be built with ‘makeinfo’. The transformation from
‘doc/foo_XXX’ to ‘doc_foo_XXX’ is required because only letters and
underscores can be used for Make variables indentifier. This
transformation is called canonalization [1].
Guix uses the inclusion of Makefile snippets instead of recursive Makefiles
which are evil [2]. %D% and %C% are used to avoid having to be explicit
about the current directory where the Makefile snippet is located.
- %D% is a shorthand for %reldir% which is substituted with the dirname
relative to the top level “Makefile.am”.
- %C% is a shorthand for %canon_reldir% which is the canonalization of
%reldir% [3].
HTH,
[1] https://www.gnu.org/software/automake/manual/html_node/Canonicalization.html
[1] https://ator1699.home.xs4all.nl/Work/GBS/Doc_and_download/2_RecursiveMakeConsideredHarmful.pdf
[2] https://www.gnu.org/software/automake/manual/html_node/Include.html for
--
Mathieu Lirzin
GPG: F2A3 8D7E EB2B 6640 5761 070D 0ADE E100 9460 4D37
next prev parent reply other threads:[~2018-01-17 12:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-15 23:11 bug#29727: changing contributing.texi does not trigger rebuild of “info” target Ricardo Wurmus
2018-01-15 14:14 ` Mathieu Lirzin
2018-01-17 7:30 ` Chris Marusich
2018-01-17 12:20 ` Mathieu Lirzin [this message]
2018-01-17 13:57 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=873734k77r.fsf@gnu.org \
--to=mthl@gnu.org \
--cc=29727@debbugs.gnu.org \
--cc=cmmarusich@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).