mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-26 08:22:43 +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
|
||||
|
||||
clean:
|
||||
|
||||
|
||||
|
||||
$(DATADIR):
|
||||
mkdir $(DATADIR)
|
||||
|
||||
$(DATADIR)/maps.google.com: $(DATADIR) FORCE
|
||||
@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
|
||||
$(Q)echo "<!DOCTYPE maps SYSTEM \"maps.dtd\">" > $(@)
|
||||
|
||||
Reference in New Issue
Block a user