]> git.openstreetmap.org Git - dns.git/blobdiff - Makefile
Add an update target to publish built zones
[dns.git] / Makefile
index 10268291953063e1ffa758c83263490307dd7bf1..89b17a00fc9b565bc487dff93c2a82be859898ec 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,16 @@
 all: data/openstreetmap.org data/openstreetmap.com data/openstreetmap.net \
      data/openstreetmaps.org data/osm.org data/openmaps.org \
      data/osmfoundation.org data/stateofthemap.org data/stateofthemap.com \
-     data/tile.openstreetmap.org kml/tile.openstreetmap.org.kml
+     data/opengeodata.org \
+     data/switch2osm.org data/switch2osm.com \
+     data/tile.openstreetmap.org
 
 clean:
        rm lib/countries.xml data/*
 
+update: all
+       bin/update
+
 lib/countries.xml:
        curl -s -o $@ http://api.geonames.org/countryInfo?username=demo
 
@@ -18,9 +23,12 @@ data/openmaps.org: src/openstreetmap
 data/osmfoundation.org: src/osmfoundation
 data/stateofthemap.org: src/stateofthemap
 data/stateofthemap.com: src/stateofthemap
+data/opengeodata.org: src/opengeodata
+data/switch2osm.org: src/switch2osm
+data/switch2osm.com: src/switch2osm
 
-data/tile.openstreetmap.org kml/tile.openstreetmap.org: src/tile.openstreetmap bin/mkgeo lib/countries.xml
+data/tile.openstreetmap.org kml/tile.openstreetmap.org.kml: src/tile.openstreetmap bin/mkgeo lib/countries.xml
        bin/mkgeo tile.openstreetmap tile.openstreetmap.org
 
 data/%:
-       sed -e 's/$(notdir $<)/$(notdir $@)/g' < $< > $@
+       sed -e 's/$(notdir $<):/$(notdir $@):/g' < $< > $@