The attached patch silences the following Automake warning seen when
running ./bootstrap:

    Makefile.am:70: warning: escaping \# comment markers is not portable

Collin

>From 0bfdb445b10a535fb8df6bc338e6d1f1d4d1bd31 Mon Sep 17 00:00:00 2001
Message-ID: <0bfdb445b10a535fb8df6bc338e6d1f1d4d1bd31.1751858345.git.collin.fu...@gmail.com>
From: Collin Funk <collin.fu...@gmail.com>
Date: Sun, 6 Jul 2025 19:41:35 -0700
Subject: [PATCH] maint: fix Automake warning

* Makefile.am (prologue): Remove macro.
(THANKS): Use the perl command directly.
---
 Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index e386565..a40a793 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -72,7 +72,7 @@ prologue = perl -ne '/^\#\#/ and exit; print' $(srcdir)/THANKS.in
 THANKS: THANKS.in Makefile.am .mailmap thanks-gen
 	$(AM_V_GEN)rm -f $@-t $@;					\
 	{								\
-	  $(prologue); echo;						\
+	  perl -ne '/^\#\#/ and exit; print' $(srcdir)/THANKS.in; echo;	\
 	  { perl -ne '/^$$/.../^$$/ and !/^$$/ and s/  +/\0/ and print'	\
 	      $(srcdir)/THANKS.in;					\
 	    git log --pretty=format:'%aN%x00%aE'			\
-- 
2.50.0

Reply via email to