2002-10-20 19:55:16 +05:30
|
|
|
# This is the src/po level Makefile configuration
|
2003-05-21 06:00:02 +05:30
|
|
|
EXTRA_DIST = $(POFILES) template.po
|
|
|
|
CLEANFILES = $(MOFILES)
|
2002-10-20 19:55:16 +05:30
|
|
|
|
2003-05-21 06:00:02 +05:30
|
|
|
all-local: $(MOFILES)
|
2002-10-20 19:55:16 +05:30
|
|
|
|
2003-05-21 06:00:02 +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
|
2003-09-03 09:49:25 +05:30
|
|
|
|
2002-10-20 19:55:16 +05:30
|
|
|
uninstall-local:
|
2003-05-21 06:00:02 +05:30
|
|
|
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:
|
2003-10-22 09:45:27 +05:30
|
|
|
$(MSGCONV) --to-code=UTF-8 $< -o temp.po
|
2003-11-19 22:50:05 +05:30
|
|
|
$(MSGFMT) temp.po -o $@
|
2003-09-03 09:49:25 +05:30
|
|
|
rm temp.po
|
|
|
|
|
2003-09-28 16:20:41 +05:30
|
|
|
zh_CN.mo: $(top_srcdir)/src/po/zh_CN.po
|
2003-10-22 09:45:27 +05:30
|
|
|
$(ICONV) -f GB2312 -t UTF-8 $< > temp.po
|
2003-11-19 22:50:05 +05:30
|
|
|
$(MSGFMT) temp.po -o $@
|
2003-09-20 07:48:04 +05:30
|
|
|
rm temp.po
|
|
|
|
|