Note: We no longer publish the latest version of our code here. We primarily use a kumc-bmi github organization. The heron ETL repository, in particular, is not public. Peers in the informatics community should see MultiSiteDev for details on requesting access.

source: heron_load/Makefile

heron-michigan tip
Last change on this file was 0:42ad7288920a, checked in by Matt Hoag <mhoag@…>, 6 years ago

Merge with demo_concepts_3800

File size: 1.5 KB
Line 
1# see devdoc/ for more details.
2
3HG=hg
4SCP=scp
5SSH=ssh
6
7DIST=heron_load
8
9zip-archive: dist/$(DIST).zip
10
11dist/$(DIST).zip:
12        $(HG) archive -I '../.hg_*' -I . -X prototype $@
13
14
15PYTHON=python
16DOT=dot
17.SUFFIXES: .dot .svg
18
19.dot.svg:
20        $(DOT) -Tsvg -o$@ $<
21
22doctest:
23        $(PYTHON) -m doctest db_util.py
24        $(PYTHON) -m doctest heron_build.py
25        $(PYTHON) -m doctest epic_etl.py
26        $(PYTHON) -m doctest idx_etl.py
27        $(PYTHON) -m doctest pavement.py
28
29devdoc:
30        (cd devdoc; make html)
31
32devdoc-publish:
33        (cd devdoc; make publish)
34
35# see #365, GroupOnly/NursingTerminology
36merge-diagrams: ,merges-09.svg ,merges-05.svg ,merges-25.svg ,merges-01.svg
37
38# a bit of a smoke test
39,merges-09.svg: ,merges-09.dot
40
41,merges-09.dot: flowsheet_merge_diagram.py ,merges-09.log
42        $(PYTHON) flowsheet_merge_diagram.py GROUP_MERGES_0_90 no >$@
43
44.PRECIOUS: ,merges-09.log ,merges-all.log
45
46,merges-09.log: flowsheet_groups_merge.py flowsheet_concepts_prune.sql
47        $(PYTHON) flowsheet_groups_merge.py 0.9 2> $@
48
49# the bulk of the real work
50,merges-05.svg: ,merges-05.dot
51
52,merges-05.dot: flowsheet_groups_merge.py ,merges-all.log
53        $(PYTHON) flowsheet_merge_diagram.py GROUP_MERGES_0_50 no >$@
54
55,merges-25.svg: ,merges-25.dot
56
57,merges-25.dot: flowsheet_merge_diagram.py ,merges-all.log
58        $(PYTHON) flowsheet_merge_diagram.py GROUP_MERGES_0_25 no >$@
59
60,merges-01.svg: ,merges-01.dot
61
62,merges-01.dot: flowsheet_groups_merge.py ,merges-all.log
63        $(PYTHON) flowsheet_merge_diagram.py GROUP_MERGES_0_10 no >$@
64
65,merges-all.log: flowsheet_groups_merge.py flowsheet_concepts_prune.sql
66        $(PYTHON) flowsheet_groups_merge.py 0.5 0.25 0.1 2> $@
Note: See TracBrowser for help on using the repository browser.