Crosscompiling: Updated required packages for compiling.
[maxima/cygwin.git] / locale / Makefile.am
blobfc3b20331cc589a9155e69a38421b2373fa40baa
1 TRANSLATIONS = es pt
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 ; \
12         done
14 # the programs we use (TODO: use configure to detect them)
15 MSGFMT=msgfmt --verbose
16 MSGMERGE=msgmerge
17 XGETTEXT=xgettext
18 XARGS=xargs
20 XGETTEXT_ARGS=-s -c -j
22 SUFFIXES=       .mo .po
24 .po.mo:
25         $(MSGFMT) -o $@ $<
27 maxima.pot:
28         touch $@
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
34 allmo:
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
39 force-update:
40         $(RM) maxima.pot
42 all: allmo