This commit is contained in:
Bernard Davison
2011-06-19 23:38:17 +10:00
committed by Felix Ruess
parent 028ce2c7a0
commit 8e327bfe96
2 changed files with 10 additions and 7 deletions
+2 -2
View File
@@ -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
View File
@@ -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.*## > $(@)