2002-10-20 14:25:16 +00:00
|
|
|
# This is the src/po level Makefile configuration
|
2003-05-21 00:30:02 +00:00
|
|
|
EXTRA_DIST = $(POFILES) template.po
|
|
|
|
CLEANFILES = $(MOFILES)
|
2002-10-20 14:25:16 +00:00
|
|
|
|
2003-05-21 00:30:02 +00:00
|
|
|
all-local: $(MOFILES)
|
2002-10-20 14:25:16 +00:00
|
|
|
|
2003-05-21 00:30:02 +00:00
|
|
|
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 14:25:16 +00:00
|
|
|
done
|
2003-09-03 04:19:25 +00:00
|
|
|
|
2002-10-20 14:25:16 +00:00
|
|
|
uninstall-local:
|
2003-05-21 00:30:02 +00:00
|
|
|
for lang in $(LANGUAGES); do \
|
|
|
|
rm -f $(DESTDIR)$(prefix)/share/locale/$$lang/LC_MESSAGES/gramps.mo; \
|
2002-10-20 14:25:16 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
SUFFIXES = .po .mo
|
|
|
|
|
|
|
|
.po.mo:
|
2003-10-22 04:15:27 +00:00
|
|
|
$(MSGCONV) --to-code=UTF-8 $< -o temp.po
|
2003-11-19 17:20:05 +00:00
|
|
|
$(MSGFMT) temp.po -o $@
|
2003-09-03 04:19:25 +00:00
|
|
|
rm temp.po
|
|
|
|
|
2003-09-28 10:50:41 +00:00
|
|
|
zh_CN.mo: $(top_srcdir)/src/po/zh_CN.po
|
2003-10-22 04:15:27 +00:00
|
|
|
$(ICONV) -f GB2312 -t UTF-8 $< > temp.po
|
2003-11-19 17:20:05 +00:00
|
|
|
$(MSGFMT) temp.po -o $@
|
2003-09-20 02:18:04 +00:00
|
|
|
rm temp.po
|
|
|
|
|