Fix:samplemap:Avoid running osm2navit multiple times when make is called with -j
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Mon, 5 Jan 2009 22:12:55 +0000 (22:12 +0000)
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Mon, 5 Jan 2009 22:12:55 +0000 (22:12 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@1902 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/maps/Makefile.am

index 0784b15..312e98a 100644 (file)
@@ -11,10 +11,12 @@ $(SAMPLE_MAP).osm.bz2:
        wget -O $(SAMPLE_MAP).osm.bz2.tmp http://www.navit-project.org/maps/$(SAMPLE_MAP).osm.bz2
        mv $(SAMPLE_MAP).osm.bz2.tmp $(SAMPLE_MAP).osm.bz2
 
-$(SAMPLE_MAP).bin $(SAMPLE_MAP).xml: $(SAMPLE_MAP).osm.bz2 $(top_builddir)/navit/osm2navit
+$(SAMPLE_MAP).bin: $(SAMPLE_MAP).osm.bz2 $(top_builddir)/navit/osm2navit
        echo "Converting osm sample map"
        bzcat $(SAMPLE_MAP).osm.bz2 | $(top_builddir)/navit/osm2navit --attr-debug-level=5 $(SAMPLE_MAP).bin.tmp
        mv $(SAMPLE_MAP).bin.tmp $(SAMPLE_MAP).bin
+
+$(SAMPLE_MAP).xml: $(SAMPLE_MAP).bin
        echo '<map type="binfile" enabled="yes" data="$$NAVIT_SHAREDIR/maps/osm_bbox_11.3,47.9,11.7,48.2.bin"/>' >$(SAMPLE_MAP).xml
 
 distclean-local: