-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (31 loc) · 970 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# for icd-10 codes
sas_icd10 := hcup/comformat_icd10cm_2017.txt hcup/comoanaly_icd10cm_2017.txt
dict_icd10 := icd10_dictionaries.txt
hcup_icd10 := hcup_icd10.py
parse_icd10 := parse_icd10.py
# for icd-9 codes
sas_icd9 := hcup/comformat2012-2015.txt hcup/comoanaly2012-2015.txt
dict_icd9 := icd9_dictionaries.txt
hcup_icd9 := hcup_icd9.py
parse_icd9 := parse_icd9.py
.PHONY: icd10
icd10: $(dict_icd10) touch_icd10.py icd10.py
@python3 icd10.py
$(sas_icd10): $(hcup_icd10)
@echo "Downloading SAS scripts from HCUP..."
@python3 $(hcup_icd10)
$(dict_icd10): $(sas_icd10) $(parse_icd10)
@echo "Generating dictionaries..."
@python3 $(parse_icd10)
.PHONY: icd9
icd9: $(dict_icd9) touch_icd9.py icd9.py
@python3 icd9.py
$(sas_icd9): $(hcup_icd9)
@echo "Downloading SAS scripts from HCUP..."
@python3 $(hcup_icd9)
$(dict_icd9): $(sas_icd9) $(parse_icd9)
@echo "Generating dictionaries..."
@python3 $(parse_icd9)
.PHONY: clean
clean:
rm -rf __pycache__ *~