From a6676cca6498ce67c5a3c8d7221b8d6c30b61dc4 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Fri, 6 May 2011 15:38:46 -0600 Subject: [PATCH] maintainer-makefile: make sc_po_check easier to tune * top/maint.mk (sc_po_check): Allow overriding which non-VC files to probe for strings, such as an alternate location for gnulib. Signed-off-by: Eric Blake --- ChangeLog | 4 ++++ top/maint.mk | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b7251e619..700dbb1ce 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2011-05-06 Eric Blake + maintainer-makefile: make sc_po_check easier to tune + * top/maint.mk (sc_po_check): Allow overriding which non-VC files + to probe for strings, such as an alternate location for gnulib. + fclose: guarantee behavior on seekable stdin * modules/fclose (Depends-on): Add fflush. * doc/posix-functions/fclose.texi (fclose): Document this. diff --git a/top/maint.mk b/top/maint.mk index 07efceca1..f22135773 100644 --- a/top/maint.mk +++ b/top/maint.mk @@ -987,12 +987,13 @@ apply the above patch\n' # Verify that all source files using _() are listed in po/POTFILES.in. po_file ?= $(srcdir)/po/POTFILES.in +generated_files ?= $(srcdir)/lib/*.[ch] sc_po_check: @if test -f $(po_file); then \ grep -E -v '^(#|$$)' $(po_file) \ | grep -v '^src/false\.c$$' | sort > $@-1; \ files=; \ - for file in $$($(VC_LIST_EXCEPT)) $(srcdir)/lib/*.[ch]; do \ + for file in $$($(VC_LIST_EXCEPT)) $(generated_files); do \ test -r $$file || continue; \ case $$file in \ *.m4|*.mk) continue ;; \ -- 2.11.0