diff top/maint.mk @ 14704:0223f2067342

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 <eblake@redhat.com>
author Eric Blake <eblake@redhat.com>
date Fri, 06 May 2011 15:38:46 -0600
parents 6b83b217fcdd
children 8fd3118c13f8
line wrap: on
line diff
--- a/top/maint.mk	Fri May 06 13:01:17 2011 -0600
+++ b/top/maint.mk	Fri May 06 15:38:46 2011 -0600
@@ -987,12 +987,13 @@
 
 # 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 ;;					\