From 58912f68c2489bcee787599837447e0d64dfd61a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Wed, 24 May 2017 21:03:56 +0200 Subject: New upstream version 1.0.27 --- po/Makefile.am | 87 ---------------------------------------------------------- 1 file changed, 87 deletions(-) delete mode 100644 po/Makefile.am (limited to 'po/Makefile.am') diff --git a/po/Makefile.am b/po/Makefile.am deleted file mode 100644 index d757b11..0000000 --- a/po/Makefile.am +++ /dev/null @@ -1,87 +0,0 @@ -## Makefile.am -- an automake template for Makefile.in file -## Copyright (C) 2009 Chris Bagwell and Sane Developers. -## -## This file is part of the "Sane" build infra-structure. See -## included LICENSE file for license information. - -# See po/README for documentation. - -MSGFMT = @MSGFMT@ -XGETTEXT = @XGETTEXT@ -MSGMERGE = @MSGMERGE@ -w75 - -GETTEXT_PACKAGE = @PACKAGE@ - -TMP_FILE_DIR = .tmp - -PO_LINGUAS=$(shell if test -r $(srcdir)/LINGUAS; then grep -v "^\#" $(srcdir)/LINGUAS; else echo ""; fi) -SRC_FILES=$(shell if test -r $(srcdir)/POTFILES; then grep -v "^\#" $(srcdir)/POTFILES; else echo ""; fi) - -PO_FILES=$(shell LINGUAS="$(PO_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.po "; done) -MO_FILES=$(shell LINGUAS="$(PO_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.mo "; done) - -EXTRA_DIST = README LINGUAS POTFILES -EXTRA_DIST += $(PO_FILES) - - -if ENABLE_TRANSLATIONS -EXTRA_DIST += $(GETTEXT_PACKAGE).pot -INSTALL_TRANSLATIONS = install-translations -UNINSTALL_TRANSLATIONS = uninstall-translations -ALL = all-mos -else -INSTALL_TRANSLATIONS = -UNINSTALL_TRANSLATIONS = -ALL = -endif - -all: $(ALL) - -all-mos: $(MO_FILES) - -.po.mo: - @echo "generating $@ from $^" - @$(MSGFMT) -o $@ $^ - -install-translations: - @for lang in $(PO_LINGUAS) ; do \ - dir=$(localedir)/$${lang}/LC_MESSAGES ; \ - echo "installing sane-backends $${lang}.mo to $${dir}/$(GETTEXT_PACKAGE).mo..." ; \ - $(mkinstalldirs) $(DESTDIR)$${dir} && \ - $(INSTALL_DATA) $${lang}.mo $(DESTDIR)$${dir}/$(GETTEXT_PACKAGE).mo ; \ - done - -install-data-local: $(INSTALL_TRANSLATIONS) - -uninstall-translations: - @for lang in $(PO_LINGUAS) ; do \ - dir=$(localedir)/$${lang}/LC_MESSAGES ; \ - echo removing $${dir}/$(GETTEXT_PACKAGE).mo ; \ - rm -f $(DESTDIR)$${dir}/$(GETTEXT_PACKAGE).mo ; \ - done - -uninstall-local: $(UNINSTALL_TRANSLATIONS) - -clean-local: - rm -f *.mo - rm -f *.old - rm -f *.pot - -$(GETTEXT_PACKAGE).pot: $(SRC_FILES) - @echo "creating $@ from $^" - @$(XGETTEXT) -d$(GETTEXT_PACKAGE) -kSANE_I18N --flag=SANE_I18N:1:no-c-format -f $(srcdir)/POTFILES -D$(srcdir) - @mv $(GETTEXT_PACKAGE).po $(GETTEXT_PACKAGE).pot - -update: $(GETTEXT_PACKAGE).pot - @for lang in $(PO_LINGUAS) ; do \ - pofile=$${lang}.po ; \ - if test ! -f $${pofile} ; then \ - echo "creating $${pofile}" ; \ - cp template.po $${pofile} ; \ - fi ; \ - echo "updating $${pofile}" ; \ - cp $${pofile} $${pofile}.old ; \ - $(MSGMERGE) $${pofile}.old $< -o $${pofile} ; \ - rm -f $${pofile}.old template.po ; \ - done - -- cgit v1.2.3