Commit b1c5b345 authored by Peter Eisentraut's avatar Peter Eisentraut

Add missing dependency and fix thinko.

parent 34d1cf8d
# $Header: /cvsroot/pgsql/src/nls-global.mk,v 1.1 2001/06/02 18:25:17 petere Exp $ # $Header: /cvsroot/pgsql/src/nls-global.mk,v 1.2 2001/06/30 21:58:06 petere Exp $
# Common rules for Native Language Support (NLS) # Common rules for Native Language Support (NLS)
# #
...@@ -35,7 +35,9 @@ endif ...@@ -35,7 +35,9 @@ endif
PO_FILES = $(addsuffix .po, $(LANGUAGES)) PO_FILES = $(addsuffix .po, $(LANGUAGES))
MO_FILES = $(addsuffix .mo, $(LANGUAGES)) MO_FILES = $(addsuffix .mo, $(LANGUAGES))
XGETTEXT += --foreign-user ifdef XGETTEXT
XGETTEXT += --foreign-user -ctranslator
endif
all-po: $(MO_FILES) all-po: $(MO_FILES)
...@@ -48,10 +50,10 @@ distprep: $(srcdir)/$(CATALOG_NAME).pot ...@@ -48,10 +50,10 @@ distprep: $(srcdir)/$(CATALOG_NAME).pot
ifdef XGETTEXT ifdef XGETTEXT
ifeq ($(word 1,$(GETTEXT_FILES)),+) ifeq ($(word 1,$(GETTEXT_FILES)),+)
$(srcdir)/$(CATALOG_NAME).pot: $(word 2, $(GETTEXT_FILES)) $(srcdir)/$(CATALOG_NAME).pot: $(word 2, $(GETTEXT_FILES))
$(XGETTEXT) -D $(srcdir) -ctranslator -n $(addprefix -k, $(GETTEXT_TRIGGERS)) -f $< $(XGETTEXT) -D $(srcdir) -n $(addprefix -k, $(GETTEXT_TRIGGERS)) -f $<
else else
$(srcdir)/$(CATALOG_NAME).pot: $(GETTEXT_FILES) $(srcdir)/$(CATALOG_NAME).pot: $(GETTEXT_FILES)
$(XGETTEXT) -ctranslator -n $(addprefix -k, $(GETTEXT_TRIGGERS)) $^ $(XGETTEXT) -n $(addprefix -k, $(GETTEXT_TRIGGERS)) $^
endif endif
mv messages.po $@ mv messages.po $@
else # not XGETTEXT else # not XGETTEXT
...@@ -75,7 +77,7 @@ clean-po: ...@@ -75,7 +77,7 @@ clean-po:
rm -f $(MO_FILES) rm -f $(MO_FILES)
@rm -f $(addsuffix .po.old, $(AVAIL_LANGUAGES)) @rm -f $(addsuffix .po.old, $(AVAIL_LANGUAGES))
maintainer-clean-po: maintainer-clean-po: clean-po
rm -f $(srcdir)/$(CATALOG_NAME).pot rm -f $(srcdir)/$(CATALOG_NAME).pot
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment