diff options
author | jandegr <jandegr@users.noreply.github.com> | 2017-01-09 17:28:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-09 17:28:37 +0100 |
commit | 668eb94171c6a329c607940b3fa322d49ca86525 (patch) | |
tree | b3ea1b7198cbf7536ea4ead4d30a399923449479 /po | |
parent | 57c731ddba87dd51d5dad54e64c99189c7adff7f (diff) | |
parent | 5030d911084584f9b37aeaa916ab43130044edbf (diff) | |
download | navit-668eb94171c6a329c607940b3fa322d49ca86525.tar.gz |
Merge pull request #62 from navit-gps/trac/1341
Removing autotools support, merged following the conversion of the Navit tomtom and Opentom builds and the lack of other comments for almost eight moths.
Diffstat (limited to 'po')
-rw-r--r-- | po/Makefile.am | 112 |
1 files changed, 0 insertions, 112 deletions
diff --git a/po/Makefile.am b/po/Makefile.am deleted file mode 100644 index 15d8b7b93..000000000 --- a/po/Makefile.am +++ /dev/null @@ -1,112 +0,0 @@ -CATALOGS = @MOFILES@ - -CLEANFILES = $(CATALOGS) navit.pot - -# keep this sorted -EXTRA_DIST = @POIFILES@ \ - $(top_srcdir)/navit/android/src/org/navitproject/navit/NavitAddressSearchActivity.java \ - $(top_srcdir)/navit/android/src/org/navitproject/navit/NavitDialogs.java \ - $(top_srcdir)/navit/android/src/org/navitproject/navit/NavitDownloadSelectMapActivity.java \ - $(top_srcdir)/navit/android/src/org/navitproject/navit/NavitGraphics.java \ - $(top_srcdir)/navit/android/src/org/navitproject/navit/Navit.java \ - $(top_srcdir)/navit/android/src/org/navitproject/navit/NavitMapDownloader.java \ - $(top_srcdir)/navit/android/res/values/strings.xml - -POTFILES = \ - $(top_srcdir)/navit/main.c \ - $(top_srcdir)/navit/navigation.c \ - $(top_srcdir)/navit/navit.c \ - $(top_srcdir)/navit/popup.c \ - $(top_srcdir)/navit/country.c \ - $(top_srcdir)/navit/gui/gtk/destination.c \ - $(top_srcdir)/navit/gui/gtk/gui_gtk_action.c \ - $(top_srcdir)/navit/gui/gtk/gui_gtk_poi.c \ - $(top_srcdir)/navit/gui/gtk/gui_gtk_statusbar.c \ - $(top_srcdir)/navit/gui/internal/gui_internal.c \ - $(top_srcdir)/navit/gui/internal/gui_internal_bookmark.c \ - $(top_srcdir)/navit/gui/internal/gui_internal_command.c \ - $(top_srcdir)/navit/gui/internal/gui_internal_html.c \ - $(top_srcdir)/navit/gui/internal/gui_internal_menu.c \ - $(top_srcdir)/navit/gui/internal/gui_internal_poi.c \ - $(top_srcdir)/navit/gui/internal/gui_internal_search.c \ - $(top_srcdir)/navit/gui/internal/gui_internal_widget.c \ - $(top_srcdir)/navit/osd/core/osd_core.c \ - $(top_srcdir)/navit/android/src/org/navitproject/navit/NavitAddressSearchActivity.java \ - $(top_srcdir)/navit/android/src/org/navitproject/navit/NavitDialogs.java \ - $(top_srcdir)/navit/android/src/org/navitproject/navit/NavitDownloadSelectMapActivity.java \ - $(top_srcdir)/navit/android/src/org/navitproject/navit/NavitGraphics.java \ - $(top_srcdir)/navit/android/src/org/navitproject/navit/Navit.java \ - $(top_srcdir)/navit/android/src/org/navitproject/navit/NavitMapDownloader.java \ - $(top_builddir)/navit/navit_shipped.c \ - $(top_builddir)/navit/strings.c - -if XGETTEXT_GLADE -POTFILES += $(top_builddir)/navit/navit_shipped.glade -endif - - -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@ - -# Trick gettext to get translateable strings out of navit_shipped.xml - -$(top_builddir)/navit/navit_shipped.glade: $(top_srcdir)/navit/navit_shipped.xml - 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 - -$(top_builddir)/navit/navit_shipped.c: $(top_srcdir)/navit/navit_shipped.xml - 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 - -# Trick gettext to get translateable strings out of android/strings.xml - -$(top_builddir)/navit/strings.c: $(top_srcdir)/navit/android/res/values/strings.xml - sed -e "s/\\\\'/'/g" -e 's%.*<string[^>]*name="\(.*\)">\(.*\)</string>%// Android resource: @strings/\1\n_("\2")%g' -e '\%^//%!d'<$(top_srcdir)/navit/android/res/values/strings.xml >$(top_builddir)/navit/strings.c - -@POFILES@: navit.pot - 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 - -navit.pot: $(POTFILES) - $(XGETTEXT) --no-location --default-domain=navit \ - --add-comments --keyword=_ --keyword=_n --keyword=navit_nls_gettext --keyword=navit_nls_ngettext:1,2 $(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: - rm -f $(top_builddir)/navit/navit_shipped.glade $(top_builddir)/navit/navit_shipped.c $(top_builddir)/navit/strings.c - 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; \ - rm -f $$l.po; \ - fi; \ - done |