-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (25 loc) · 1006 Bytes
/
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
.PHONY : all upload-to-s3 clean
all : data/processed/disclosures.xlsx \
data/processed/candidate_committees.csv \
data/processed/candidate_committee_filings.csv \
data/processed/pac_committees.csv \
data/processed/pac_committee_filings.csv \
data/processed/independent_expenditures.xlsx \
data/processed/lobbyist.xlsx \
data/processed/lobbyist_employer.xlsx
upload-to-s3 : data/processed/disclosures.xlsx \
data/processed/candidate_committees.csv \
data/processed/candidate_committee_filings.csv \
data/processed/pac_committees.csv \
data/processed/pac_committee_filings.csv \
data/processed/independent_expenditures.xlsx \
data/processed/lobbyist.xlsx \
data/processed/lobbyist_employer.xlsx
for file in $^; do aws s3 cp $$file $(S3BUCKET) --acl public-read; done
%_data_dirs :
mkdir -p $(patsubst %,data/$*/%,raw intermediate processed assets)
include lobbyists.mk \
lobbyist_employer.mk \
disclosures.mk \
candidates.mk \
independent_expenditures.mk