[maps] if google maps version download fails, print message and remove emtpy file

This commit is contained in:
Felix Ruess
2012-09-07 20:45:33 +02:00
parent a1781dea53
commit cdff90306c
+3 -2
View File
@@ -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\">" > $(@)