about summary refs log tree commit diff stats
path: root/po/makefile.inn
diff options
context:
space:
mode:
Diffstat (limited to 'po/makefile.inn')
-rw-r--r--po/makefile.inn13
1 files changed, 12 insertions, 1 deletions
diff --git a/po/makefile.inn b/po/makefile.inn
index 67012357..328b24c1 100644
--- a/po/makefile.inn
+++ b/po/makefile.inn
@@ -1,4 +1,4 @@
-# $LynxId: makefile.inn,v 1.14 2007/05/13 23:43:17 tom Exp $
+# $LynxId: makefile.inn,v 1.16 2008/07/19 11:07:29 tom Exp $
 #
 # Makefile for program source directory in GNU NLS utilities package.
 # Copyright (C) 1995, 1996, 1997 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
@@ -221,6 +221,17 @@ dist distdir: update-po $(DISTFILES)
 	    || cp -p $(srcdir)/$$file $(distdir); \
 	done
 
+# GNU msgfmt -C option can also check for X/Open compat.
+check-po:
+	cd $(srcdir); \
+	catalogs='$(CATALOGS)'; \
+	for cat in $$catalogs; do \
+	  cat=`basename $$cat`; \
+	  lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
+	  echo "$$lang:"; \
+	  $(MSGFMT) -f -c -v $$lang.po; \
+	done
+
 update-po: makefile
 	$(MAKE) $(PACKAGE).pot
 	PATH=`pwd`/../src:$$PATH; \