source: raven-j/heron_wsgi/Makefile

Last change on this file was 0:4b7a93ab1a38, checked in by Tamara McMahon <tmcmahon@…>, 2 years ago

KUMC DROC Data Dictionary requested by Mosa

File size: 1.4 KB
Line 
1# apt-get install graphviz
2DOT=dot
3XDG_OPEN=xdg-open
4# pip install snakefood
5SFOOD=sfood
6SFOOD_GRAPH=sfood-graph
7# pip install coverage
8COVERAGE=coverage
9
10MODULES= \
11        admin_lib/audit_usage.py \
12        admin_lib/disclaimer.py \
13        admin_lib/heron_policy.py \
14        admin_lib/i2b2pm.py \
15        admin_lib/__init__.py \
16        admin_lib/jndi_util.py \
17        admin_lib/ldaplib.py \
18        admin_lib/medcenter.py \
19        admin_lib/migrate_approvals.py \
20        admin_lib/mock_directory.py \
21        admin_lib/notary.py \
22        admin_lib/noticelog.py \
23        admin_lib/ocap_file.py \
24        admin_lib/redcap_connect.py \
25        admin_lib/redcapdb.py \
26        admin_lib/rtconfig.py \
27        admin_lib/sealing.py \
28        admin_lib/tests.py \
29        cas_auth.py \
30        drocnotice.py \
31        genshi_render.py \
32        heron_srv.py \
33        __init__.py \
34        perf_reports.py \
35        powerbox.py \
36        stats.py \
37        tests.py
38
39
40view: ,deps.svg
41        $(XDG_OPEN) ,deps.svg
42
43,deps.svg: ,deps.dot
44        $(DOT) -Tsvg ,deps.dot >$@
45
46,deps.ps: ,deps.dot
47        $(DOT) -Tps ,deps.dot >$@
48
49,deps.dot: ,deps.txt
50        $(SFOOD_GRAPH) ,deps.txt >$@
51
52,deps.txt: $(MODULES)
53        $(SFOOD) --internal-only --follow heron_srv.py >$@
54
55coverage: htmlcov/index.html
56        $(XDG_OPEN) htmlcov/index.html
57
58htmlcov/index.html: .coverage
59        $(COVERAGE) html \
60                --omit 'htdocs-heron/*',admin_lib/ldaplib.py,admin_lib/db_util.py,admin_lib/hcard_mock.py,tests.py,admin_lib/tests.py
61
62.coverage: tests.py $(MODULES)
63        $(COVERAGE) run --source . --branch tests.py
64
65clean:
66        $(RM) -rf .coverage htmlcov ,deps.*
Note: See TracBrowser for help on using the repository browser.