[429088]: po / Makefile.am Maximize Restore History

Download this file

Makefile.am    67 lines (52 with data), 1.3 kB

 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
GMOFILES =
POFILES = $(GMOFILES:.gmo=.po)
localedir = $(kde_locale)
MAINTAINERCLEANFILES = $(GMOFILES)
GMSGFMT = @GMSGFMT@
MSGFMT = @MSGFMT@
XGETTEXT = @XGETTEXT@
EXTRA_DIST = kde.pot $(POFILES) $(GMOFILES)
all: all-@USE_NLS@
install-data-local: install-@USE_NLS@
SUFFIXES = .po .gmo
.po.mo:
$(MSGFMT) -o $@ $<
.po.gmo:
file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \
&& rm -f $$file && $(GMSGFMT) -o $$file $<
all-yes: $(GMOFILES)
all-no:
install-yes: all
@catalogs='$(GMOFILES)'; \
for cat in $$catalogs; do \
destdir=$(localedir); \
lang=`echo $$cat | sed 's/\.gmo//'`; \
name=kde.mo \
dir=$$destdir/$$lang/LC_MESSAGES; \
$(mkinstalldirs) $$dir; \
$(INSTALL_DATA) $$cat $$dir/$$name; \
echo "installing $$cat as $$dir/$$name"; \
done
install-no:
uninstall-local:
@catalogs='$(GMOFILES)'; \
for cat in $$catalogs; do \
destdir=$(localedir); \
lang=`echo $$cat | sed 's/\.gmo//'`; \
name=kde.mo; \
dir=$$destdir/$$lang/LC_MESSAGES; \
rm -f $$cat $$dir/$$name; \
echo "removing $$dir/$$name" ; \
done
merge:
@catalogs='$(POFILES)'; \
for cat in $$catalogs; do \
name=`echo $$cat | sed -e 's/^.._//' `; \
echo $$cat $$name; \
msgmerge $$cat $$name > $$cat.new ; \
if diff $$cat $$cat.new; then \
rm $$cat.new; \
else \
mv $$cat.new $$cat ; \
fi; \
done