File tree Expand file tree Collapse file tree 1 file changed +24
-1
lines changed
Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,16 @@ PYTHON=$(shell which python3.4)
44virtual-env :
55 $(PYTHON ) -m venv $(VENV )
66
7- deps :
7+ pygraphviz :
8+ git clone https://github.com/pygraphviz/pygraphviz
9+ . $(VENV ) /bin/activate && \
10+ cd pygraphviz && \
11+ git checkout 6c0876c9bb158452f1193d562531d258e9193f2e && \
12+ git apply ../patches/graphviz-includes.diff && \
13+ python setup.py install
14+
15+
16+ deps : pygraphviz
817 . $(VENV ) /bin/activate && \
918 pip3.4 install -r requirements.txt
1019
1625
1726clean :
1827 rm -rf $(VENV )
28+
29+ # Use the following make target like so:
30+ #
31+ # $ SCRIPT=./my-script.py make callgraph
32+ callgraph :
33+ . $(VENV ) /bin/activate && \
34+ pycallgraph graphviz -- $(SCRIPT )
35+
36+ # Use the following make target like so:
37+ #
38+ # $ SCRIPT=./my-script.py LAYOUT=twopi MODE=simple make modgraph
39+ modgraph :
40+ python third-party/modgraph.py $(SCRIPT ) $(LAYOUT ) $(MODE ) && \
41+ open modgraph.png
You can’t perform that action at this time.
0 commit comments