-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
21 lines (18 loc) · 928 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
preview-live:
docker run --rm -it -v `pwd`:/vol -w /vol circleci/node:lts npm run build
aws s3 sync --delete --acl public-read --cache-control 'public, max-age=30' WEBSITE_OUTPUT/ s3://planscore-2020-site-update/
WEBSITE_OUTPUT/data/electionoutcomes_statehouse-raw.csv: WEBSITE_OUTPUT/data/107slers20210522.dta.csv.gz
csvgrep -c outcome -m w $^ \
| csvgrep -c sen -m 0 \
| csvgrep -c etype -r '[gs]+$$' \
| csvcut -c outcome,sen,etype,dno,sab,year,partyt \
| pv -l > $@
WEBSITE_OUTPUT/data/electionoutcomes_statesenate-raw.csv: WEBSITE_OUTPUT/data/107slers20210522.dta.csv.gz
csvgrep -c outcome -m w $^ \
| csvgrep -c sen -m 1 \
| csvgrep -c etype -r '[gs]+$$' \
| csvcut -c outcome,sen,etype,dno,sab,year,partyt \
| pv -l > $@
WEBSITE_OUTPUT/data/districtpolygons/%.json: WEBSITE_OUTPUT/data/districtpolygons/%.geojson
docker run --rm -it -v `pwd`:/vol -w /vol circleci/node:lts \
./geo2topo.sh $^ $@