-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (33 loc) · 1.09 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
.PHONY: clean all check update clean_downloaded
all: geonames_import featurecodes.js openlayers/OpenLayers.js
update: clean_download all
clean_download:
rm -f featureCodes_nb.txt NO.zip
clean: clean_download
rm -f NO.txt featurecodes.js jslint.js
check: jslint.js
rhino jslint.js measure.js
rhino jslint.js statekeeper.js
rhino jslint.js autoswitcher.js
rhino jslint.js kart.js
rhino jslint.js search.js
rhino jslint.js bruker.js
rhino jslint.js status.js
jslint.js:
wget http://jslint.com/rhino/jslint.js
NO.zip:
wget -N http://download.geonames.org/export/dump/NO.zip
NO.txt: NO.zip
unzip -o NO.zip $@
geonames_import: NO.txt
python importGeonames.py < NO.txt
touch geonames_import
featureCodes_nb.txt:
wget -N http://download.geonames.org/export/dump/featureCodes_nb.txt
featurecodes.js: featureCodes_nb.txt
python featurejson.py < featureCodes_nb.txt > featurecodes.js
openlayers/build/OpenLayers.js:
cp kart.cfg openlayers/build
cd openlayers/build && python build.py kart.cfg
openlayers/OpenLayers.js: openlayers/build/OpenLayers.js
cd openlayers/ && ln -s build/OpenLayers.js .