diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2001-07-15 11:43:55 +0000 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2001-07-15 11:43:55 +0000 |
commit | 9e5ec3b0b9a46e199d4ce8f7f801d0bda37d4e35 (patch) | |
tree | 4b727b25868daa13cae7864da0fb9f981a550c18 /src/nls-global.mk | |
parent | 6102553e2da773f583c045611bc20d99edd92b9c (diff) | |
download | postgresql-9e5ec3b0b9a46e199d4ce8f7f801d0bda37d4e35.tar.gz |
Change xgettext rule to run in the source tree, so we don't have the
absolute paths of the source tree in the po files. Also, run msgfmt with
-c option in maintainer-check.
Diffstat (limited to 'src/nls-global.mk')
-rw-r--r-- | src/nls-global.mk | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/nls-global.mk b/src/nls-global.mk index a29036027c..e61cf88aeb 100644 --- a/src/nls-global.mk +++ b/src/nls-global.mk @@ -1,4 +1,4 @@ -# $Header: /cvsroot/pgsql/src/nls-global.mk,v 1.2 2001/06/30 21:58:06 petere Exp $ +# $Header: /cvsroot/pgsql/src/nls-global.mk,v 1.3 2001/07/15 11:43:55 petere Exp $ # Common rules for Native Language Support (NLS) # @@ -53,7 +53,9 @@ $(srcdir)/$(CATALOG_NAME).pot: $(word 2, $(GETTEXT_FILES)) $(XGETTEXT) -D $(srcdir) -n $(addprefix -k, $(GETTEXT_TRIGGERS)) -f $< else $(srcdir)/$(CATALOG_NAME).pot: $(GETTEXT_FILES) - $(XGETTEXT) -n $(addprefix -k, $(GETTEXT_TRIGGERS)) $^ +# Change to srcdir explicitly, don't rely on $^. That way we get +# consistent #: file references in the po files. + $(XGETTEXT) -D $(srcdir) -n $(addprefix -k, $(GETTEXT_TRIGGERS)) $(GETTEXT_FILES) endif mv messages.po $@ else # not XGETTEXT @@ -83,7 +85,7 @@ maintainer-clean-po: clean-po maintainer-check-po: $(PO_FILES) for file in $^; do \ - $(MSGFMT) -v -o /dev/null $$file || exit 1; \ + $(MSGFMT) -c -v -o /dev/null $$file || exit 1; \ done |