From unknown Sat Sep 20 12:22:01 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#52500 <52500@debbugs.gnu.org> To: bug#52500 <52500@debbugs.gnu.org> Subject: Status: misleading description of %reldir% Reply-To: bug#52500 <52500@debbugs.gnu.org> Date: Sat, 20 Sep 2025 19:22:01 +0000 retitle 52500 misleading description of %reldir% reassign 52500 automake submitter 52500 Bruno Haible severity 52500 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 14 23:11:10 2021 Received: (at submit) by debbugs.gnu.org; 15 Dec 2021 04:11:10 +0000 Received: from localhost ([127.0.0.1]:59966 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mxLdG-0005aU-1K for submit@debbugs.gnu.org; Tue, 14 Dec 2021 23:11:10 -0500 Received: from lists.gnu.org ([209.51.188.17]:50142) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mxLdE-0005aM-NG for submit@debbugs.gnu.org; Tue, 14 Dec 2021 23:11:09 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41528) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxLdE-0006ZK-7e for bug-automake@gnu.org; Tue, 14 Dec 2021 23:11:08 -0500 Received: from mo4-p00-ob.smtp.rzone.de ([85.215.255.22]:28011) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxLdA-0005D0-Tt for bug-automake@gnu.org; Tue, 14 Dec 2021 23:11:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1639541460; s=strato-dkim-0002; d=clisp.org; h=Message-ID:Date:Subject:To:From:Cc:Date:From:Subject:Sender; bh=NAsK/M0Bo+/L0fpXTpRlIqpWYcQzFqs3LOe7pfeXPLY=; b=IROGtVlcJ0ACVxHTriC3yPVQxqq6CqU/nI3z/rryt+QfZUEW8Ja6Upe8alkBJZoPUI K1bAtH5vzd1xGM2jwfcaM70R3aYmT/uIfOHr3GhTu8zweXS2e26i1AneWidXGHE1q3hD 8fCLutL6RlxUtHclfaH09TeD0SamxO4AjJmcNucynZG5oxCM+CJggQfU+ZVCkxAkLeow pIWWfUO5aPZEzj6IYVP+bCfcKEqPqkz2phTXxAJAjsuC0/dlDdnzGo/iMCQMuag6jkMU LrnzAV72twaXnSf8jbjfXovVfaHKxaE06u3fJYVK1lkPjHZffQUzjIOlm5jXHqwUw54f BlPw== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH0WWb0LN8XZoH94z26ll5ip69kkxbMhGItYzWgkQ0wVl6tBqhYOw==" X-RZG-CLASS-ID: mo00 Received: from omega.localnet by smtp.strato.de (RZmta 47.35.3 AUTH) with ESMTPSA id K01903xBF4B08Yt (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Wed, 15 Dec 2021 05:11:00 +0100 (CET) From: Bruno Haible To: bug-automake@gnu.org Subject: misleading description of %reldir% Date: Wed, 15 Dec 2021 05:11:00 +0100 Message-ID: <6043170.uZKlY2gecq@omega> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Received-SPF: none client-ip=85.215.255.22; envelope-from=bruno@clisp.org; helo=mo4-p00-ob.smtp.rzone.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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 From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 18 21:27:14 2021 Received: (at 52500) by debbugs.gnu.org; 19 Dec 2021 02:27:14 +0000 Received: from localhost ([127.0.0.1]:44603 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mylus-0006qC-Bx for submit@debbugs.gnu.org; Sat, 18 Dec 2021 21:27:14 -0500 Received: from freefriends.org ([96.88.95.60]:52336) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mylun-0006pr-8n; Sat, 18 Dec 2021 21:27:09 -0500 X-Envelope-From: karl@freefriends.org Received: from freefriends.org (freefriends.org [96.88.95.60]) by freefriends.org (8.14.7/8.14.7) with ESMTP id 1BJ2R4So011729 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 18 Dec 2021 19:27:05 -0700 Received: (from apache@localhost) by freefriends.org (8.14.7/8.14.7/Submit) id 1BJ2R3cu011728; Sat, 18 Dec 2021 19:27:03 -0700 Date: Sat, 18 Dec 2021 19:27:03 -0700 Message-Id: <202112190227.1BJ2R3cu011728@freefriends.org> From: Karl Berry To: bruno@clisp.org Subject: Re: bug#52500: misleading description of %reldir% In-Reply-To: <6043170.uZKlY2gecq@omega> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 52500 Cc: 52500@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi Bruno, %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. Thanks much. I added the dot/underscore information you wrote as well. I pushed it, hope it looks ok ... -k @@ -10911,12 +10911,20 @@ Similarly, @code{%canon_reldir%} is replaced with the canonicalized is a synonym for @code{%canon_reldir%}. A special feature is that if the fragment is in the same directory as -the base @file{Makefile.am} (i.e., @code{%reldir%} is @code{.}), then -@code{%reldir%} and @code{%canon_reldir%} will expand to the empty -string as well as eat, if present, a following slash or underscore -respectively. +the base @file{Makefile.am} (i.e., @code{%reldir%} is @code{.}), then: + +@table @code +@item %reldir% +together with a following slash expands to the empty string, otherwise +it expands to a dot; + +@item %canon_reldir% +together with a following underscore expands to the empty string, otherwise +it expands to an underscore. + +@end table From unknown Sat Sep 20 12:22:01 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 16 Jan 2022 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator