Create maps dir and makefile.am there
authorzaxl <zaxl@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Mon, 5 Nov 2007 10:55:43 +0000 (10:55 +0000)
committerzaxl <zaxl@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Mon, 5 Nov 2007 10:55:43 +0000 (10:55 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@517 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/src/maps/Makefile.am [new file with mode: 0644]

diff --git a/navit/src/maps/Makefile.am b/navit/src/maps/Makefile.am
new file mode 100644 (file)
index 0000000..421ee8e
--- /dev/null
@@ -0,0 +1,22 @@
+include $(top_srcdir)/Makefile.inc
+
+SAMPLE_MAP=osm_bbox_11.3,47.9,11.7,48.2
+
+maps_DATA = $(SAMPLE_MAP).bin
+
+samplemap: $(SAMPLE_MAP).bin
+
+$(SAMPLE_MAP).osm.bz2:
+       echo "Downloading osm sample map"
+       wget -O $(SAMPLE_MAP).osm.bz2.tmp http://navit.sourceforge.net/maps/$(SAMPLE_MAP).osm.bz2
+       mv $(SAMPLE_MAP).osm.bz2.tmp $(SAMPLE_MAP).osm.bz2
+
+$(SAMPLE_MAP).bin: $(SAMPLE_MAP).osm.bz2 $(top_srcdir)/src/osm2navit
+       echo "Converting osm sample map"
+       bzcat $(SAMPLE_MAP).osm.bz2 | $(top_srcdir)/src/osm2navit >$(SAMPLE_MAP).bin.tmp
+       mv $(SAMPLE_MAP).bin.tmp $(SAMPLE_MAP).bin
+
+distclean-local:
+       rm -f $(SAMPLE_MAP).osm.bz2 $(SAMPLE_MAP).bin
+
+all: