-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
21 lines (17 loc) · 770 Bytes
/
Makefile
File metadata and controls
21 lines (17 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# ZIP -> geojson -> geojson with digit_* properties
# -> upload as to mapbox
# -> calculate bounds.json
# Make sure to remove intermediate shp, geojson files. Just need bounds.json and geojson with digits
all: generated/postal_boundaries_mapbox.geojson
clean:
rm -rf -- shp generated
shp/POA_2011_AUST.shp:
unzip originals/2011_POA_shape.zip -d $(dir $@)
touch $@
# TODO(yuri): Generalise TypeScript compilation?
process_for_mapbox.js: src/process_for_mapbox.ts
tsc --outDir $(dir $@) $<
chmod +x $@
generated/postal_boundaries_mapbox.geojson: process_for_mapbox.js shp/POA_2011_AUST.shp
mkdir -p $(dir $@)
node process_for_mapbox.js shp/POA_2011_AUST.shp > $@