mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-31 20:38:27 +08:00
[maps] if google maps version download fails, print message and remove emtpy file
This commit is contained in:
+3
-2
@@ -4,14 +4,15 @@ Q=@
|
|||||||
all: $(DATADIR)/maps.google.com $(PAPARAZZI_HOME)/conf/maps.xml
|
all: $(DATADIR)/maps.google.com $(PAPARAZZI_HOME)/conf/maps.xml
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
|
||||||
|
|
||||||
$(DATADIR):
|
$(DATADIR):
|
||||||
mkdir $(DATADIR)
|
mkdir $(DATADIR)
|
||||||
|
|
||||||
$(DATADIR)/maps.google.com: $(DATADIR) FORCE
|
$(DATADIR)/maps.google.com: $(DATADIR) FORCE
|
||||||
@echo "DOWNLOAD: google maps version code";
|
@echo "DOWNLOAD: google maps version code";
|
||||||
$(Q)wget -q -O $(@) http://maps.google.com/
|
$(Q)wget -q -O $(@) http://maps.google.com/ | \
|
||||||
|
rm -f $(@) && echo "Could not download google maps version code" && exit 1
|
||||||
|
|
||||||
$(PAPARAZZI_HOME)/conf/maps.xml: $(DATADIR)/maps.google.com
|
$(PAPARAZZI_HOME)/conf/maps.xml: $(DATADIR)/maps.google.com
|
||||||
$(Q)echo "<!DOCTYPE maps SYSTEM \"maps.dtd\">" > $(@)
|
$(Q)echo "<!DOCTYPE maps SYSTEM \"maps.dtd\">" > $(@)
|
||||||
|
|||||||
Reference in New Issue
Block a user