1- # $Header: /cvsroot/pgsql/src/nls-global.mk,v 1.1 2001/06/02 18:25:17 petere Exp $
1+ # $Header: /cvsroot/pgsql/src/nls-global.mk,v 1.2 2001/06/30 21:58:06 petere Exp $
22
33# Common rules for Native Language Support (NLS)
44#
3535PO_FILES =$(addsuffix .po,$(LANGUAGES ) )
3636MO_FILES =$(addsuffix .mo,$(LANGUAGES ) )
3737
38- XGETTEXT += --foreign-user
38+ ifdef XGETTEXT
39+ XGETTEXT += --foreign-user -ctranslator
40+ endif
3941
4042
4143all-po :$(MO_FILES )
@@ -48,10 +50,10 @@ distprep: $(srcdir)/$(CATALOG_NAME).pot
4850ifdef XGETTEXT
4951ifeq ($(word 1,$(GETTEXT_FILES ) ) ,+)
5052$(srcdir ) /$(CATALOG_NAME ) .pot :$(word 2,$(GETTEXT_FILES ) )
51- $(XGETTEXT ) -D$(srcdir ) -ctranslator - n$(addprefix -k,$(GETTEXT_TRIGGERS ) ) -f$<
53+ $(XGETTEXT ) -D$(srcdir ) -n$(addprefix -k,$(GETTEXT_TRIGGERS ) ) -f$<
5254else
5355$(srcdir ) /$(CATALOG_NAME ) .pot :$(GETTEXT_FILES )
54- $(XGETTEXT ) -ctranslator - n$(addprefix -k,$(GETTEXT_TRIGGERS ) ) $^
56+ $(XGETTEXT ) -n$(addprefix -k,$(GETTEXT_TRIGGERS ) ) $^
5557endif
5658mv messages.po $@
5759else# not XGETTEXT
@@ -75,7 +77,7 @@ clean-po:
7577rm -f$(MO_FILES )
7678@rm -f$(addsuffix .po.old,$(AVAIL_LANGUAGES ) )
7779
78- maintainer-clean-po :
80+ maintainer-clean-po : clean-po
7981rm -f$(srcdir ) /$(CATALOG_NAME ) .pot
8082
8183