maint: fix Automake warning

* Makefile.am (prologue): Remove macro, as \# is not portable here
and Automake complains.  Replace its only use with its definiens.
This commit is contained in:
Paul Eggert
2025-05-09 15:49:23 -07:00
parent 6218cb18b0
commit 16d5cf3e66

View File

@@ -143,9 +143,6 @@ check-ls-dircolors:
# current locale considers to be equal. # current locale considers to be equal.
ASSORT = LC_ALL=C sort ASSORT = LC_ALL=C sort
# Extract all lines up to the first one starting with "##".
prologue = perl -ne '/^\#\#/ and exit; print' $(srcdir)/THANKS.in
# FIXME: avoid dependency to build our own 'sort' for 'make dist' ... # FIXME: avoid dependency to build our own 'sort' for 'make dist' ...
# when common platforms have a functional case-folding implementation: # when common platforms have a functional case-folding implementation:
# $ test 'abácad' = "$(printf '%s\n' 'ab' 'ác' 'ad' \ # $ test 'abácad' = "$(printf '%s\n' 'ab' 'ác' 'ad' \
@@ -157,7 +154,7 @@ prologue = perl -ne '/^\#\#/ and exit; print' $(srcdir)/THANKS.in
THANKS: THANKS.in Makefile.am .mailmap thanks-gen .version THANKS: THANKS.in Makefile.am .mailmap thanks-gen .version
$(AM_V_GEN)rm -f $@-t $@; \ $(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' \ { perl -ne '/^$$/.../^$$/ and !/^$$/ and s/ +/\0/ and print' \
$(srcdir)/THANKS.in; \ $(srcdir)/THANKS.in; \
git log --pretty=format:'%aN%x00%aE' \ git log --pretty=format:'%aN%x00%aE' \