blob: 0f9c5f94cb3264419fc5eec38489be6ce16b558d (
plain)
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
66
67
68
69
70
71
72
73
74
|
CATALOGS = @MOFILES@
CLEANFILES = $(CATALOGS) navit.pot
# keep this sorted
EXTRA_DIST = @POFILES@
POTFILES = \
$(top_srcdir)/src/main.c \
$(top_srcdir)/src/navigation.c \
$(top_srcdir)/src/navit.c \
$(top_srcdir)/src/country.c \
$(top_srcdir)/src/gui/gtk/destination.c \
$(top_srcdir)/src/gui/gtk/gui_gtk_action.c
SUFFIXES = .po .mo
.po.mo:
dir=`basename $@ .mo` ;\
$(MSGFMT) --check --verbose --statistics --output-file=$@ $< && \
mkdir -p ../locale/$$dir/LC_MESSAGES && \
cp $@ ../locale/$$dir/LC_MESSAGES/navit.mo
all: @MOFILES@
@POFILES@: navit.pot
if test "$(top_srcdir)" != "$(top_builddir)"; then \
$(MSGMERGE) --verbose -o $(top_builddir)/po/$@ $(top_srcdir)/po/$@ navit.pot; \
else \
$(MSGMERGE) --update --verbose $@ navit.pot; \
fi
navit.pot: $(POTFILES)
$(XGETTEXT) --default-domain=navit \
--add-comments --keyword=_ --keyword=_n $(POTFILES)
if cmp -s navit.po navit.pot; then \
rm -f navit.po; \
else \
mv -f navit.po navit.pot; \
fi
install-data-local: $(CATALOGS)
$(mkinstalldirs) $(DESTDIR)$(datadir)/locale
chmod 755 $(DESTDIR)$(datadir)/locale
for n in $(CATALOGS) __DuMmY ; do \
if test "$$n" -a "$$n" != "__DuMmY" ; then \
l=`basename $$n .mo`; \
$(mkinstalldirs) $(DESTDIR)$(datadir)/locale/$$l/LC_MESSAGES; \
chmod 755 $(DESTDIR)$(datadir)/locale/$$l; \
chmod 755 $(DESTDIR)$(datadir)/locale/$$l/LC_MESSAGES; \
$(INSTALL_DATA) -m 644 $$n $(DESTDIR)$(datadir)/locale/$$l/LC_MESSAGES/navit.mo; \
fi; \
done
uninstall-local:
for n in $(CATALOGS) __DuMmY ; do \
if test "$$n" -a "$$n" != "__DuMmY" ; then \
l=`basename $$n .mo`; \
rm -f $(DESTDIR)$(datadir)/locale/$$l/LC_MESSAGES/navit.mo; \
fi; \
done
distclean-local:
for n in $(CATALOGS) __DuMmY ; do \
if test "$$n" -a "$$n" != "__DuMmY" ; then \
l=`basename $$n .mo`; \
rm -f ../locale/$$l/LC_MESSAGES/navit.mo; \
if test "$(top_srcdir)" != "$(top_builddir)"; then \
rm -f $$l.po; \
fi;\
fi; \
done
|