2012-02-14 05:07:58 -05:00
PO_LINGUAS = $(subst .po,,$(wildcard *.po))
USER_LINGUAS = $(filter $(LINGUAS),$(PO_LINGUAS))
USE_LINGUAS = $(shell if test -n "$(USER_LINGUAS)" -o -n "$(LINGUAS)"; then LLINGUAS="$(USER_LINGUAS)"; else LLINGUAS="$(PO_LINGUAS)"; fi; for lang in $$LLINGUAS; do printf "$$lang "; done)
ALL_CATALOGS = $(patsubst %.po,%.mo,$(wildcard *.po))
CATALOGS = $(USE_LINGUAS:%=%.mo)
2010-12-09 16:23:57 +00:00
all: $(CATALOGS)
NLSPACKAGE = $(GETTEXT_PACKAGE)-timezones
%.mo: %.po
$(AM_V_GEN) msgfmt -o $@ $<
2016-06-10 14:33:32 +02:00
test:
2010-12-09 16:23:57 +00:00
install: $(CATALOGS)
@mkdir -p $(DESTDIR)$(localedir)
for n in $(CATALOGS); do \
l=`basename $$n .mo`; \
$(INSTALL) -m 755 -d $(DESTDIR)$(localedir)/$$l; \
$(INSTALL) -m 755 -d $(DESTDIR)$(localedir)/$$l/LC_MESSAGES; \
if [ -f $$n ]; then \
$(INSTALL) -m 644 $$n $(DESTDIR)$(localedir)/$$l/LC_MESSAGES/$(NLSPACKAGE).mo; \
fi; \
done
EXTRA_DIST=$(wildcard *.po)
2012-02-14 05:07:58 -05:00
CLEANFILES = $(ALL_CATALOGS)
2010-12-09 16:23:57 +00:00
-include $(top_srcdir)/git.mk