2 EXTRA_DIST = es.po es.mo pt.po pt.mo
4 localedir = $(datadir)/locale
6 install-data-local: install-maxima-catalogs
8 install-maxima-catalogs:
9 @for i in $(TRANSLATIONS) ; do \
10 $(mkinstalldirs) $(DESTDIR)$(localedir)/$$i/LC_MESSAGES ; \
11 $(INSTALL_DATA) $$i.mo $(DESTDIR)$(localedir)/$$i/LC_MESSAGES/maxima.mo ; \
14 # the programs we use (TODO: use configure to detect them)
15 MSGFMT=msgfmt --verbose
20 XGETTEXT_ARGS=-s -c -j
29 find ../src ../share -name "*.lisp" | $(XARGS) $(XGETTEXT) $(XGETTEXT_ARGS) -o maxima.pot
31 allpo: force-update maxima.pot
32 @for t in $(TRANSLATIONS); do $(MAKE) $$t.po; done
35 @for t in $(TRANSLATIONS); do $(MAKE) $$t.mo; done
36 @for t in $(TRANSLATIONS); do $(mkinstalldirs) $$t/LC_MESSAGES; done
37 @for t in $(TRANSLATIONS); do $(INSTALL_DATA) $$t.mo $$t/LC_MESSAGES/maxima.mo; done