-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
82 lines (68 loc) · 2.37 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
## all : Run all tasks in this pipeline
all:
cd create_violation_incidents_table && make
cd create_arrest_incidents_table && make
cd create_universe_table && make
cd process_universe_table && make
cd gen_treat_tract_crosswalks && make
cd gen_potential_covariates && make
cd gen_outcomes && make
cd run_models && make
cd gen_reports/gen_model_tables && make
cd gen_reports/gen_plots && make
cd gen_reports/gen_report_doc && make
## incident_and_universe_tables : Create incident and universe tables
incident_and_universe_tables:
cd create_violation_incidents_table && make
cd create_arrest_incidents_table && make
cd create_universe_table && make
## data_prep : Run all data preparation tasks
data_prep:
cd process_universe_table && make
cd gen_potential_covariates && make
cd gen_outcomes && make
## treatment_tract_crosswalks : Generate crosswalks linking treatment and tract
treatment_tract_crosswalks:
cd create_violation_incidents_table && make
cd create_arrest_incidents_table && make
cd create_universe_table && make
cd process_universe_table && make
cd gen_treat_tract_crosswalks && make
## model : Run all modeling tasks
model:
cd create_violation_incidents_table && make
cd create_arrest_incidents_table && make
cd create_universe_table && make
cd process_universe_table && make
cd gen_potential_covariates && make
cd gen_outcomes && make
cd run_models && make
## report_components : Run all tasks that output report components
report_components::
cd create_violation_incidents_table && make
cd create_arrest_incidents_table && make
cd create_universe_table && make
cd process_universe_table && make
cd gen_potential_covariates && make
cd gen_outcomes && make
cd run_models && make
cd gen_reports/gen_model_tables && make
## report : Generate the actual report
report:
cd create_violation_incidents_table && make
cd create_arrest_incidents_table && make
cd create_universe_table && make
cd process_universe_table && make
cd gen_potential_covariates && make
cd gen_outcomes && make
cd run_models && make
cd gen_reports/gen_model_tables && make
cd gen_reports/gen_report_doc && make
## clean : Remove ALL auto-generated files
.PHONY : clean
clean :
rm -r */output
rm -r */*/output
.PHONY : help
help : makefile
@sed -n 's/^##//p' $<