-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmakefile
102 lines (78 loc) · 2.22 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
all: reconstruct reconstruct2 invert rand tree_depth tree_depth2 tree_paths \
drawtree bous order search cousins readtree bous prune_tree \
minimal_ht_tree minimal_ht_tree2 testmin lca nread bottomview \
ht_balanced
images: reconstruct.png reconstruct2.png invert.png rand.png
test: all
cd tree; go test -v .
./runtests
minimal_ht_tree: minimal_ht_tree.go
go build minimal_ht_tree.go
minimal_ht_tree2: minimal_ht_tree2.go
go build minimal_ht_tree2.go
testmin: testmin.go
go build testmin.go
prune_tree: prune_tree.go
go build prune_tree.go
cousins: cousins.go
go build cousins.go
nread: nread.go
go build nread.go
readtree: readtree.go
go build readtree.go
drawtree: drawtree.go
go build drawtree.go
bous: bous.go
go build bous.go
lca: lca.go
go build lca.go
order: order.go
go build order.go
search: search.go
go build search.go
minht.png: testmin.load testmin
./testmin > min.dat
gnuplot < testmin.load
reconstruct.png: reconstruct.dot
dot -Tpng -o reconstruct.png reconstruct.dot
reconstruct2.png: reconstruct2
./reconstruct2 '(a(b(d(p)())(e()(q)))(c(f()(r))(g(s)(t))))' > reconstruct2.dot
dot -Tpng -o reconstruct2.png reconstruct2.dot
reconstruct.dot: reconstruct
./reconstruct > reconstruct.dot
reconstruct: reconstruct.go
go build reconstruct.go
reconstruct2: reconstruct2.go
go build reconstruct2.go
invert.png: invert.dot
dot -Tpng -o invert.png invert.dot
invert.dot: invert
./invert > invert.dot
invert: invert.go
go build invert.go
rand.png: rand.dot
dot -Tpng -o rand.png rand.dot
rand.dot: rand
./rand > rand.dot
rand: rand.go
go build rand.go
tree_depth: tree_depth.go
go build tree_depth.go
tree_depth2: tree_depth2.go
go build tree_depth2.go
tree_paths: tree_paths.go
go build tree_paths.go
bottomview: bottomview.go
go build bottomview.go
ht_balanced: ht_balanced.go
go build ht_balanced.go
clean:
-rm -rf invert invert.dot invert.png
-rm -rf reconstruct reconstruct.png reconstruct.dot
-rm -rf reconstruct2 reconstruct2.png reconstruct2.dot
-rm -rf rand rand.png rand.dot
-rm -rf drawtree *.dot
-rm -rf tree_depth tree_depth2 tree_paths bous order search
-rm -rf cousins prune_tree readtree minimal_ht_tree minimal_ht_tree2
-rm -rf testmin lca nread bottomview ht_balanced
-rm -rf min.dat