2
LC_BUILD=$(top_builddir)/build/locale
3
INSTALL_DIR=$(DESTDIR)$(datarootdir)/locale
5
FILES = $(addsuffix .po, $(ALL_LINGUAS))
6
GMO_FILES = $(patsubst %.po,$(LC_BUILD)/%/LC_MESSAGES/$(PACKAGE).mo,$(FILES))
7
MO_FILES = $(foreach po,$(FILES), $(INSTALL_DIR)/$(basename $(po))/LC_MESSAGES/$(PACKAGE).mo)
12
pushd $(top_srcdir) && $(MDTOOL_RUN) gettext-update ; popd
14
$(GMO_FILES): $(LC_BUILD)/%/LC_MESSAGES/$(PACKAGE).mo: %.po
19
@for LANGFILE in $(ALL_LINGUAS); do \
20
echo "$$LANGFILE.po:"; \
21
msgfmt -o /dev/null --verbose "$$LANGFILE.po"; \
24
$(MO_FILES): $(INSTALL_DIR)/%/LC_MESSAGES/$(PACKAGE).mo : $(LC_BUILD)/%/LC_MESSAGES/$(PACKAGE).mo
26
$(install_sh) '$<' '$@'
28
install-data-local: $(MO_FILES)
31
@for FILE in $(MO_FILES); do \
32
if test -e "$$FILE"; then \
33
echo "Removing $$FILE"; \
38
CLEANFILES = $(GMO_FILES)
39
EXTRA_DIST = Makefile $(FILES)
41
include $(top_srcdir)/Makefile.include