summaryrefslogtreecommitdiff
path: root/i18n/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'i18n/Makefile.am')
-rw-r--r--i18n/Makefile.am75
1 files changed, 0 insertions, 75 deletions
diff --git a/i18n/Makefile.am b/i18n/Makefile.am
deleted file mode 100644
index 409c380..0000000
--- a/i18n/Makefile.am
+++ /dev/null
@@ -1,75 +0,0 @@
-# Makefile for PO directories.
-# François Pinard <pinard@iro.umontreal.ca>, 1998.
-
-AUTOMAKE_OPTIONS = gnits
-
-localedir = $(prefix)/share/locale
-
-ALL_POFILES = @ALL_POFILES@
-ALL_MOFILES = @ALL_MOFILES@
-MOFILES = @MOFILES@
-
-EXTRA_DIST = $(PACKAGE).pot $(ALL_POFILES) $(ALL_MOFILES)
-
-MSGFMT = msgfmt
-MSGMERGE = msgmerge
-XGETTEXT = xgettext
-
-SUFFIXES = .po .pox .mo
-
-.po.pox:
- $(MAKE) $(PACKAGE).pot
- $(MSGMERGE) $< $(srcdir)/$(PACKAGE).pot -o $*.pox
-
-.po.mo:
- file=$(srcdir)/`echo $* | sed 's,.*/,,'`.mo \
- && rm -f $$file && $(MSGFMT) -o $$file $<
-
-all: $(ALL_MOFILES)
-
-install-data-local: $(MOFILES)
-if USE_NLS
- files='$(MOFILES)'; \
- for file in $$files; do \
- base=`basename $$file`; \
- langdir=$(DESTDIR)$(localedir)/`echo $$base | sed 's/\.mo$$//'`/LC_MESSAGES; \
- $(mkinstalldirs) $$langdir; \
- echo " $(INSTALL_DATA) $(srcdir)/$$file $$langdir/$(PACKAGE).mo"; \
- $(INSTALL_DATA) $(srcdir)/$$file $$langdir/$(PACKAGE).mo; \
- done
-endif
-
-uninstall-local:
-if USE_NLS
- files='$(MOFILES)'; \
- for file in $$files; do \
- base=`basename $$file`; \
- langdir=$(DESTDIR)$(localedir)/`echo $$base | sed 's/\.mo$$//'`/LC_MESSAGES; \
- rm -f $$langdir/$(PACKAGE).mo; \
- done
-endif
-
-MAINTAINER_CLEAN = $(PACKAGE).pot $(MOFILES)
-
-$(srcdir)/$(PACKAGE).pot: $(top_srcdir)/stamp-pot
- $(XGETTEXT) --default-domain=$(PACKAGE) --directory=$(top_srcdir) \
- --add-comments --keyword=_ --keyword=N_ `cat $(top_srcdir)/stamp-pot`
- test ! -f $(PACKAGE).po || ( rm -f $@ && mv $(PACKAGE).po $@ )
-
-update-po: Makefile
- $(MAKE) $(PACKAGE).pot
- files='$(ALL_MOFILES)'; \
- for file in $$files; do \
- base=`basename $$file`; \
- lang=`echo $$base | sed 's/\.mo$$//'`; \
- mv $(srcdir)/$$lang.po $(srcdir)/$$lang.old.po; \
- echo "$$lang:"; \
- cd $(srcdir) \
- && if $(MSGMERGE) $$lang.old.po $(PACKAGE).pot -o $$lang.po; then \
- rm -f $$lang.old.po; \
- else \
- echo "msgmerge for $$file failed!"; \
- rm -f $$lang.po; \
- mv $$lang.old.po $$lang.po; \
- fi; \
- done