-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
58 lines (45 loc) · 1.23 KB
/
Copy pathmakefile
File metadata and controls
58 lines (45 loc) · 1.23 KB
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
## makefile automates the build and deployment for python projects
## Configuration
#
# project type
PROJ_TYPE = python
PROJ_MODULES = git python-resources python-cli python-doc python-doc-deploy markdown
INFO_TARGETS += appinfo
PIP_ARGS += --use-deprecated=legacy-resolver
# build config
DATA_DIR ?= data
ADD_CLEAN += *.log
ADD_CLEAN_ALL += $(OUTPUT_DIR) $(DATA_DIR)/{note,sid}
# project
OUTPUT_DIR = notes
## Includes
#
include ./zenbuild/main.mk
## Targets
#
.PHONY: appinfo
appinfo:
@echo "app-resources-dir: $(RESOURCES_DIR)"
# load the pseudo token replacement lists into SQLite (new file)
.PHONY: load
load:
@make "PY_CLI_ARGS=load" pycli
# use the medical API to parse a sentence, which lazy downloads needed models
.PHONY: primemedparser
primemedparser:
mednlp show 'I died of liver disease.'
# write all result tables/config
.PHONY: results
results:
./src/bin/stats.py save
make -C deid results
find . -name \*.xlsx -exec mv {} ~/Desktop \;
( cd src/bin ; ./maskex.py )
# stop the dump by killing matching processes
.PHONY: stop
stop:
ps -eaf | grep python | grep -v grep | grep cpbert | \
awk '{print $$2}' | xargs kill
.PHONY: vaporize
vaporize: cleanall
rm -fr $(DATA_DIR) pseudo-source