gramps/gramps2/src/po/Makefile.am
Don Allingham 8ead9aba9d * src/gramps.py: handle python versions with broken setlocale()
* src/po/Makefile.am: don't pass -v to msgfmt


svn: r2351
2003-11-19 17:20:05 +00:00

32 lines
788 B
Makefile

# This is the src/po level Makefile configuration
EXTRA_DIST = $(POFILES) template.po
CLEANFILES = $(MOFILES)
all-local: $(MOFILES)
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; \
done
uninstall-local:
for lang in $(LANGUAGES); do \
rm -f $(DESTDIR)$(prefix)/share/locale/$$lang/LC_MESSAGES/gramps.mo; \
done
SUFFIXES = .po .mo
.po.mo:
$(MSGCONV) --to-code=UTF-8 $< -o temp.po
$(MSGFMT) temp.po -o $@
rm temp.po
zh_CN.mo: $(top_srcdir)/src/po/zh_CN.po
$(ICONV) -f GB2312 -t UTF-8 $< > temp.po
$(MSGFMT) temp.po -o $@
rm temp.po