Fix:Core:Small bugfix in svn version generation
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 14 Oct 2008 20:37:13 +0000 (20:37 +0000)
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 14 Oct 2008 20:37:13 +0000 (20:37 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@1468 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/Makefile.am

index 17bd125..935352d 100644 (file)
@@ -23,7 +23,7 @@ libnavit_la_SOURCES = attr.c cache.c callback.c compass.c coord.c country.c curs
        file.h graphics.h gtkext.h gui.h item.h item_def.h keys.h log.h layer.h layout.h main.h map-share.h map.h\
        map_data.h mapset.h maptype.h menu.h navigation.h navit.h osd.h \
        param.h phrase.h plugin.h point.h plugin_def.h projection.h popup.h route.h profile.h search.h speech.h \
-       transform.h track.h util.h vehicle.h version.h window.h xmlconfig.h zipfile.h
+       transform.h track.h util.h vehicle.h window.h xmlconfig.h zipfile.h
 
 navit_SOURCES = start.c
 navit_LDADD = libnavit.la @NAVIT_LIBS@ @ZLIB_LIBS@ -Lfib-1.1 -lfib
@@ -41,7 +41,7 @@ endif
 
 version.h.tmp:
        echo "#include \"config.h\"" >version.h.tmp
-       echo "#define SVN_VERSION \"$$(LANG=C svnversion)\"" >>version.h.tmp
+       echo "#define SVN_VERSION \"$$(LANG=C svnversion 2>/dev/null)\"" >>version.h.tmp
        if ! diff version.h.tmp version.h >/dev/null 2>/dev/null; \
        then \
                mv version.h.tmp version.h; \
@@ -49,6 +49,9 @@ version.h.tmp:
 
 version.h: version.h.tmp
 
+distclean-local:
+       rm -f version.h version.h.tmp
+
 builtin.c:
        ls $(top_builddir)/navit/*/*/*.la | sed -e "s/.la/_init(void);/" -e "s/.*lib/extern void module_/" >builtin.c
        echo "extern void builtin_init(void);" >>builtin.c