3 CLEANFILES = $(CATALOGS) navit.pot
6 EXTRA_DIST = @POIFILES@
9 $(top_srcdir)/navit/main.c \
10 $(top_srcdir)/navit/navigation.c \
11 $(top_srcdir)/navit/navit.c \
12 $(top_srcdir)/navit/popup.c \
13 $(top_srcdir)/navit/country.c \
14 $(top_srcdir)/navit/gui/gtk/destination.c \
15 $(top_srcdir)/navit/gui/gtk/gui_gtk_action.c \
16 $(top_srcdir)/navit/gui/gtk/gui_gtk_statusbar.c \
17 $(top_srcdir)/navit/gui/internal/gui_internal.c \
18 $(top_srcdir)/navit/osd/core/osd_core.c \
19 $(top_builddir)/navit/navit_shipped.c
22 POTFILES += $(top_builddir)/navit/navit_shipped.glade
29 dir=`basename $@ .mo` ;\
30 $(MSGFMT) --check --verbose --statistics --output-file=$@ $< && \
31 mkdir -p ../locale/$$dir/LC_MESSAGES && \
32 cp $@ ../locale/$$dir/LC_MESSAGES/navit.mo
36 # Trick gettext to get translateable strings out of navit_shipped.xml
38 $(top_builddir)/navit/navit_shipped.glade: $(top_srcdir)/navit/navit_shipped.xml
39 sed -e "s/vehicleprofile/atkaction/" -e "s/name=/description=/" -e 's/<!\[CDATA\[//' -e 's/\]\]//' <$(top_srcdir)/navit/navit_shipped.xml >$(top_builddir)/navit/navit_shipped.glade
41 $(top_builddir)/navit/navit_shipped.c: $(top_srcdir)/navit/navit_shipped.xml
42 sed -e 's/|//g' -e 's/^/|/' -e 's/$$/|/' -e 's/\(_("[^"]*")\)/| \1; |/g' -e 's/|[^|]*|//g' <$(top_srcdir)/navit/navit_shipped.xml >$(top_builddir)/navit/navit_shipped.c
45 sed 's/^"Project-Id-Version:.*/"Project-Id-Version: $(PACKAGE_STRING)\\n"/' < $(top_srcdir)/po/$@.in | $(MSGMERGE) --no-fuzzy-matching --verbose -o $(top_builddir)/po/$@ - navit.pot
47 navit.pot: $(POTFILES)
48 $(XGETTEXT) --no-location --default-domain=navit \
49 --add-comments --keyword=_ --keyword=_n $(POTFILES)
50 if cmp -s navit.po navit.pot; then \
53 mv -f navit.po navit.pot; \
56 install-data-local: $(CATALOGS)
57 $(mkinstalldirs) $(DESTDIR)$(datadir)/locale
58 chmod 755 $(DESTDIR)$(datadir)/locale
59 for n in $(CATALOGS) __DuMmY ; do \
60 if test "$$n" -a "$$n" != "__DuMmY" ; then \
61 l=`basename $$n .mo`; \
62 $(mkinstalldirs) $(DESTDIR)$(datadir)/locale/$$l/LC_MESSAGES; \
63 chmod 755 $(DESTDIR)$(datadir)/locale/$$l; \
64 chmod 755 $(DESTDIR)$(datadir)/locale/$$l/LC_MESSAGES; \
65 $(INSTALL_DATA) -m 644 $$n $(DESTDIR)$(datadir)/locale/$$l/LC_MESSAGES/navit.mo; \
70 for n in $(CATALOGS) __DuMmY ; do \
71 if test "$$n" -a "$$n" != "__DuMmY" ; then \
72 l=`basename $$n .mo`; \
73 rm -f $(DESTDIR)$(datadir)/locale/$$l/LC_MESSAGES/navit.mo; \
78 rm -f $(top_builddir)/navit/navit_shipped.glade $(top_builddir)/navit/navit_shipped.c
79 for n in $(CATALOGS) __DuMmY ; do \
80 if test "$$n" -a "$$n" != "__DuMmY" ; then \
81 l=`basename $$n .mo`; \
82 rm -f ../locale/$$l/LC_MESSAGES/navit.mo; \