mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-09 22:49:53 +08:00
Now creating conf/maps_data/maps.conf which could be read with something like http://docs.camlcity.org/docs/godipkg/3.11/godi-missinglib/lib/ocaml/pkg-lib/missinglib/configParser.mli
This commit is contained in:
committed by
Felix Ruess
parent
028ce2c7a0
commit
8e327bfe96
@@ -72,12 +72,12 @@ all: commands static conf
|
||||
|
||||
static : lib center tools cockpit multimon tmtc misc logalizer lpc21iap sim_static static_h usb_lib
|
||||
|
||||
conf: conf/conf.xml conf/control_panel.xml conf/maps_data/version
|
||||
conf: conf/conf.xml conf/control_panel.xml conf/maps_data/maps.conf
|
||||
|
||||
conf/%.xml :conf/%.xml.example
|
||||
[ -L $@ ] || [ -f $@ ] || cp $< $@
|
||||
|
||||
conf/maps_data/version:
|
||||
conf/maps_data/maps.conf:
|
||||
cd data/maps; $(MAKE)
|
||||
|
||||
|
||||
|
||||
+8
-5
@@ -1,13 +1,16 @@
|
||||
DATADIR = $(PAPARAZZI_HOME)/conf/maps_data
|
||||
Q=@
|
||||
|
||||
all: $(DATADIR)/index $(DATADIR)/version
|
||||
all: $(DATADIR)/maps.google.com $(DATADIR)/maps.conf
|
||||
|
||||
$(DATADIR):
|
||||
mkdir $(DATADIR)
|
||||
|
||||
$(DATADIR)/index: $(DATADIR)
|
||||
$(Q)wget -O $(@) http://maps.google.com/
|
||||
$(DATADIR)/maps.google.com: $(DATADIR)
|
||||
wget -O $(@) http://maps.google.com/
|
||||
|
||||
$(DATADIR)/maps.conf: $(DATADIR)/maps.google.com
|
||||
$(Q)echo "[GOOGLE]" > $(@)
|
||||
$(Q)echo "google_version:" `grep -P "http://khm[0-9]+.google.com/kh/v=[0-9]+.x26" $(DATADIR)/maps.google.com | sed -E s#.*http://khm[0-9]+.google.com/kh/v=## | sed -E s#.x26.*##` >> $(@)
|
||||
$(Q)echo "" >> $(@)
|
||||
|
||||
$(DATADIR)/version: $(DATADIR)/index
|
||||
$(Q)grep -P "http://khm[0-9]+.google.com/kh/v=[0-9]+.x26" $(DATADIR)/index | sed -E s#.*http://khm[0-9]+.google.com/kh/v=## | sed -E s#.x26.*## > $(@)
|
||||
|
||||
Reference in New Issue
Block a user