]> git.openstreetmap.org Git - dns.git/blob - Makefile
Use grouped targets to avoid contention in parallel runs
[dns.git] / Makefile
1 preview: preview_cloudflare
2
3 preview_cloudflare: include/sshfp.js include/tile.js include/render.js include/nominatim.js
4         dnscontrol preview
5
6 update: update_cloudflare update_geodns
7
8 update_cloudflare: include/sshfp.js include/tile.js include/render.js include/nominatim.js
9         dnscontrol push --providers cloudflare
10
11 update_geodns: gdns/tile.map gdns/tile.resource gdns/tile.weighted gdns/nominatim.map gdns/nominatim.resource gdns/nominatim.weighted
12         parallel --will-cite rsync --quiet --recursive --checksum gdns/ {}::geodns ::: ${GEODNS_SERVERS}
13
14 clean:
15         rm -f includes/* json/* origins/* gdns/*
16
17 lib/countries.xml:
18         curl -s -o $@ http://api.geonames.org/countryInfo?username=demo
19
20 include/sshfp.js&: bin/mksshfp $(wildcard /etc/ssh/ssh_known_hosts)
21         bin/mksshfp
22
23 origins/tile.openstreetmap.yml&: bin/mkcountries lib/countries.xml bandwidth/tile.openstreetmap.yml
24         bin/mkcountries bandwidth/tile.openstreetmap.yml origins/tile.openstreetmap.yml
25
26 include/tile.js json/tile.openstreetmap.org.json origins/render.openstreetmap.yml gdns/tile.map gdns/tile.resource gdns/tile.weighted&: bin/mkgeo origins/tile.openstreetmap.yml src/tile.openstreetmap.yml
27         bin/mkgeo origins/tile.openstreetmap.yml src/tile.openstreetmap.yml tile origins/render.openstreetmap.yml tile
28
29 include/render.js json/render.openstreetmap.org.json&: bin/mkgeo origins/render.openstreetmap.yml src/render.openstreetmap.yml
30         bin/mkgeo origins/render.openstreetmap.yml src/render.openstreetmap.yml render origins/tile-total.openstreetmap.yml
31
32 origins/nominatim.openstreetmap.yml&: bin/mkcountries lib/countries.xml bandwidth/nominatim.openstreetmap.yml
33         bin/mkcountries bandwidth/nominatim.openstreetmap.yml origins/nominatim.openstreetmap.yml
34
35 include/nominatim.js json/nominatim.openstreetmap.org.json origins/nominatim-total.openstreetmap.yml gdns/nominatim.map gdns/nominatim.resource gdns/nominatim.weighted&: bin/mkgeo origins/nominatim.openstreetmap.yml src/nominatim.openstreetmap.yml
36         bin/mkgeo origins/nominatim.openstreetmap.yml src/nominatim.openstreetmap.yml nominatim origins/nominatim-total.openstreetmap.yml nominatim