File: Makefile.am

package info (click to toggle)
maxima 5.47.0-9
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 193,104 kB
  • sloc: lisp: 434,678; fortran: 14,665; tcl: 10,990; sh: 4,577; makefile: 2,763; ansic: 447; java: 328; python: 262; perl: 201; xml: 60; awk: 28; sed: 15; javascript: 2
file content (42 lines) | stat: -rw-r--r-- 1,003 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
TRANSLATIONS = es pt
EXTRA_DIST = es.po es.mo pt.po pt.mo

localedir = $(datadir)/locale

install-data-local: install-maxima-catalogs

install-maxima-catalogs:
	@for i in $(TRANSLATIONS) ; do \
		$(mkinstalldirs) $(DESTDIR)$(localedir)/$$i/LC_MESSAGES ; \
		$(INSTALL_DATA) $$i.mo $(DESTDIR)$(localedir)/$$i/LC_MESSAGES/maxima.mo ; \
	done

# the programs we use (TODO: use configure to detect them)
MSGFMT=msgfmt --verbose
MSGMERGE=msgmerge
XGETTEXT=xgettext
XARGS=xargs

XGETTEXT_ARGS=-s -c -j

SUFFIXES=	.mo .po

.po.mo:
	$(MSGFMT) -o $@ $<

maxima.pot:
	touch $@
	find ../src ../share -name "*.lisp" | $(XARGS) $(XGETTEXT) $(XGETTEXT_ARGS) -o maxima.pot

allpo: force-update maxima.pot
	@for t in $(TRANSLATIONS); do $(MAKE) $$t.po; done

allmo:
	@for t in $(TRANSLATIONS); do $(MAKE) $$t.mo; done
	@for t in $(TRANSLATIONS); do $(mkinstalldirs) $$t/LC_MESSAGES; done
	@for t in $(TRANSLATIONS); do $(INSTALL_DATA) $$t.mo $$t/LC_MESSAGES/maxima.mo; done

force-update:
	$(RM) maxima.pot

all: allmo