gramps/gramps2/src/po/Makefile.am

32 lines
807 B
Makefile
Raw Normal View History

2002-10-20 19:55:16 +05:30
# This is the src/po level Makefile configuration
EXTRA_DIST = $(POFILES) template.po
CLEANFILES = $(MOFILES)
2002-10-20 19:55:16 +05:30
all-local: $(MOFILES)
2002-10-20 19:55:16 +05:30
install-data-local:
for lang in $(LANGUAGES); do \
$(INSTALL) -d $(DESTDIR)$(prefix)/share/locale/$$lang; \
$(INSTALL) -d $(DESTDIR)$(prefix)/share/locale/$$lang/LC_MESSAGES; \
$(INSTALL_DATA) $$lang.mo $(DESTDIR)$(prefix)/share/locale/$$lang/LC_MESSAGES/$(PACKAGE).mo; \
2002-10-20 19:55:16 +05:30
done
2002-10-20 19:55:16 +05:30
uninstall-local:
for lang in $(LANGUAGES); do \
rm -f $(DESTDIR)$(prefix)/share/locale/$$lang/LC_MESSAGES/gramps.mo; \
2002-10-20 19:55:16 +05:30
done
SUFFIXES = .po .mo
.po.mo:
@MSGCONV@ --to-code=UTF-8 $< -o temp.po
$(MSGFMT) -v temp.po -o $@
rm temp.po
zh_CN.mo: $(top_srcdir)/src/po/zh_CN.po
iconv --from-code=GB2312 --to-code=UTF-8 $< -o temp.po
$(MSGFMT) -v temp.po -o $@
rm temp.po