-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
50 lines (39 loc) · 1.13 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
## makefile automates the build and deployment for python projects
## Build
#
PROJ_TYPE = python
PROJ_MODULES = git python-resources python-cli python-doc python-doc-deploy markdown
INFO_TARGETS += appinfo
PY_DEP_POST_DEPS += modeldeps
PIP_ARGS += --use-deprecated=legacy-resolver
ADD_CLEAN_ALL += $(DIST_DIR)
CLEAN_ALL_DEPS += cleanpaper
## Project
#
ENTRY = ./harness.py
DIST_DIR = dist
include ./zenbuild/main.mk
.PHONY: appinfo
appinfo:
@echo "app-resources-dir: $(RESOURCES_DIR)"
.PHONY: modeldeps
modeldeps:
$(PIP_BIN) install $(PIP_ARGS) -r src/python/requirements-model.txt --no-deps
.PHONY: results
results:
rm -fr results
mkdir -p results/csv
$(ENTRY) excel --out results/discharge-summary-match.xlsx
$(ENTRY) csv --out results/csv --yaml results/config
./src/bin/opthyper.py dumpagg
.PHONY: extract
extract:
rm -fr $(DIST_DIR)
mkdir -p $(DIST_DIR)
$(ENTRY) extract --section --text --annotator
mv annotations.json dist/dsprov-annotations-all.json
$(ENTRY) extract --section
mv annotations.json dist/dsprov-annotations.json
.PHONY: cleanpaper
cleanpaper:
make -C paper cleanall