Skip to content

Commit a981f9b

Browse files
committed
More targets.
1 parent 92e6cbc commit a981f9b

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

Makefile

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,16 @@ PYTHON=$(shell which python3.4)
44
virtual-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

@@ -16,3 +25,17 @@ run:
1625

1726
clean:
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

0 commit comments

Comments
 (0)