From 13a2025998271ad69058987358c92074e627848c Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 24 Sep 2008 15:25:12 +0200 Subject: [PATCH] maint: avoid using find -name Makefile.am; could get false positives * maint.mk (makefile-check): Instead, search for the offending @...@ construct only in version-controlled files. --- maint.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/maint.mk b/maint.mk index f3bbf9afad..2987272fb0 100644 --- a/maint.mk +++ b/maint.mk @@ -551,7 +551,8 @@ check-AUTHORS: # not @...@ in Makefile.am, now that we can rely on automake # to emit a definition for each substituted variable. makefile-check: - @grep -nE '@[A-Z_0-9]+@' `find . -name Makefile.am` \ + @grep -nE '@[A-Z_0-9]+@' \ + $$($(VC_LIST_EXCEPT) | grep -E '(^|/)Makefile\.am$$') \ && { echo '$(ME): use $$(...), not @...@' 1>&2; exit 1; } || : news-date-check: NEWS -- 2.47.3