@ -45,22 +45,26 @@ all-po: $(MO_FILES)
%.mo : %.po
$( MSGFMT) -o $@ $<
i f d e f X G E T T E X T
i f e q ( $( word 1,$ ( GETTEXT_FILES ) ) , + )
po/$(CATALOG_NAME).pot : $( word 2, $ ( GETTEXT_FILES ) ) $( MAKEFILE_LIST )
i f d e f X G E T T E X T
$( XGETTEXT) -D $( srcdir) -n $( addprefix -k, $( GETTEXT_TRIGGERS) ) -f $<
e l s e
@echo "You don't have 'xgettext'." ; exit 1
e n d i f
e l s e # GETTEXT_FILES
po/$(CATALOG_NAME).pot : $( GETTEXT_FILES ) $( MAKEFILE_LIST )
# Change to srcdir explicitly, don't rely on $^. That way we get
# consistent #: file references in the po files.
i f d e f X G E T T E X T
$( XGETTEXT) -D $( srcdir) -n $( addprefix -k, $( GETTEXT_TRIGGERS) ) $( GETTEXT_FILES)
e l s e
@echo "You don't have 'xgettext'." ; exit 1
e n d i f
e n d i f # GETTEXT_FILES
@$( MKDIR_P) $( dir $@ )
sed -e '1,18 { s/SOME DESCRIPTIVE TITLE./LANGUAGE message translation file for $(CATALOG_NAME)/;s/PACKAGE/PostgreSQL/g;s/VERSION/$(MAJORVERSION)/g;s/YEAR/' ` date +%Y` '/g; }' messages.po >$@
rm messages.po
e l s e # not XGETTEXT
@echo "You don't have 'xgettext'." ; exit 1
e n d i f # not XGETTEXT
# catalog name extentions must match behavior of PG_TEXTDOMAIN() in c.h