This repository has been archived by the owner on Jan 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (36 loc) · 1.92 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
REFILL_VERSION = 11.0.0
WALKABOUT_VERSION = 6.0.0
BUBBLE_WRAP_VERSION = 8.0.0
LEAFLET_GEOCODER_VERSION = 1.9.4
all: node_packages \
leaflet-geocoder \
leaflet-hash \
slippymap-crosshairs \
public-scene
node_packages:
npm install
leaflet-geocoder:
@echo "Instead of 'npm run-script build' we download Leaflet Geocoder assets from a CDN"
curl -s -o public/lib/leaflet-geocoder-mapzen/dist/leaflet-geocoder-mapzen.css https://cdnjs.cloudflare.com/ajax/libs/leaflet-geocoder-mapzen/1.9.4/leaflet-geocoder-mapzen.css
curl -s -o public/lib/leaflet-geocoder-mapzen/dist/leaflet-geocoder-mapzen.min.css https://cdnjs.cloudflare.com/ajax/libs/leaflet-geocoder-mapzen/1.9.4/leaflet-geocoder-mapzen.min.css
curl -s -o public/lib/leaflet-geocoder-mapzen/dist/leaflet-geocoder-mapzen.js https://cdnjs.cloudflare.com/ajax/libs/leaflet-geocoder-mapzen/1.9.4/leaflet-geocoder-mapzen.js
curl -s -o public/lib/leaflet-geocoder-mapzen/dist/leaflet-geocoder-mapzen.min.js https://cdnjs.cloudflare.com/ajax/libs/leaflet-geocoder-mapzen/1.9.4/leaflet-geocoder-mapzen.min.js
leaflet-hash:
curl -s -o public/lib/leaflet-hash.js https://raw.githubusercontent.com/mlevans/leaflet-hash/master/leaflet-hash.js
slippymap-crosshairs:
curl -s -o public/lib/slippymap.crosshairs.js https://raw.githubusercontent.com/whosonfirst/js-slippymap-crosshairs/master/src/slippymap.crosshairs.js
public-lib:
./node_modules/bower/bin/bower install
public-scene:
@name=bubble-wrap version=$(BUBBLE_WRAP_VERSION) make scene
@name=refill-style version=$(REFILL_VERSION) make scene
@name=walkabout-style version=$(WALKABOUT_VERSION) make scene
scene:
@echo "installing $(name) v$(version)"
@curl -o $(name).zip -Ls https://github.com/tangrams/$(name)/archive/v$(version).zip
@unzip -q $(name).zip
@rm -rf public/scene/$(name)
@mv $(name)-$(version) public/scene/$(name)
@mv $(name).zip public/scene/$(name)/$(name)-$(version).zip
tiles:
bin/tilepack.sh public/tiles