gramps/gramps2/src/po/Makefile.am
Alex Roitman ff581b3772 * configure.in: Detect iconv at configuration time.
* src/po/Makefile.am: Invoke detected iconv in its simplest form.
Minor cleanup.
* gramps.sh.in: Correct paths for systems with custom datadir.
* src/DisplayTrace.py: Check for LANG before including in the message.


svn: r2279
2003-10-22 04:15:27 +00:00

32 lines
794 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) -v 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) -v temp.po -o $@
rm temp.po