summaryrefslogtreecommitdiff
path: root/top
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2011-05-06 15:38:46 -0600
committerEric Blake <eblake@redhat.com>2011-05-06 15:38:46 -0600
commita6676cca6498ce67c5a3c8d7221b8d6c30b61dc4 (patch)
tree12d482b0d5420263f1fb92f7d12fdd10ddf0b658 /top
parent3606b90f3c4a19708ef05140837f2aa307f2516f (diff)
downloadgnulib-a6676cca6498ce67c5a3c8d7221b8d6c30b61dc4.tar.gz
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>
Diffstat (limited to 'top')
-rw-r--r--top/maint.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/top/maint.mk b/top/maint.mk
index 07efceca13..f22135773d 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 ;; \