mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-09 22:49:53 +08:00
18 lines
584 B
Makefile
18 lines
584 B
Makefile
DATADIR = $(PAPARAZZI_HOME)/conf/maps_data
|
|
Q=@
|
|
|
|
all: $(DATADIR)/maps.google.com $(PAPARAZZI_HOME)/conf/maps.xml
|
|
|
|
$(DATADIR):
|
|
mkdir $(DATADIR)
|
|
|
|
$(DATADIR)/maps.google.com: $(DATADIR) FORCE
|
|
wget -O $(@) http://maps.google.com/
|
|
|
|
$(PAPARAZZI_HOME)/conf/maps.xml: $(DATADIR)/maps.google.com
|
|
$(Q)echo -e "<!DOCTYPE maps SYSTEM \"maps.dtd\">\n" > $(@)
|
|
$(Q)echo -e "<maps 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 -e "" >> $(@)
|
|
|
|
FORCE:
|