mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-01 12:57:27 +08:00
[maps] if google maps version download fails, print message and remove emtpy file
This commit is contained in:
+2
-1
@@ -11,7 +11,8 @@ $(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