GNU bug report logs -
#52500
misleading description of %reldir%
Previous Next
Reported by: Bruno Haible <bruno <at> clisp.org>
Date: Wed, 15 Dec 2021 04:12:02 UTC
Severity: normal
Done: Karl Berry <karl <at> freefriends.org>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi,
The documentation
https://www.gnu.org/software/automake/manual/automake.html#Include
says:
"A special feature is that if the fragment is in the same directory
as the base Makefile.am (i.e., %reldir% is .), then %reldir% and
%canon_reldir% will expand to the empty string as well as eat, if
present, a following slash or underscore respectively."
IMO, this paragraph implies that if the fragment is in the same directory
as the base Makefile.am
- %reldir% without a following slash expands to empty,
- %canon_reldir% without a following underscore expands to empty.
But this is not the case. (And if it were, the %reldir% and
%canon_reldir% feature would be unusable.) In fact,
%reldir% without a following slash expands to a dot, and
%canon_reldir% without a following underscore expands to an underscore.
Suggested new text:
A special feature is that if the fragment is in the same directory
as the base Makefile.am (i.e., %reldir% is .), then
- %reldir% together with a following slash will expand to empty,
- %canon_reldir% together with a following underscore will expand
to empty as well.
Bruno
This bug report was last modified 3 years and 248 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.