-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathMakefile
110 lines (76 loc) · 2.66 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
103
104
105
106
107
108
109
110
## The big OWL repository is available here
## https://github.com/phillord/big-owl. It's just a collection of
## big-owl test files. It can be checked out using the big-owl target,
## or just linked from here.
BIG_OWL=./big-owl
all: bubo
cargo doc
browser-reload.sh horned_owl
pre-commit: quick-test
pre-push: all-tests
cargo bench --no-run
## Build the Unit test Ontology code
just-bubo:
$(MAKE) -C src/ont/bubo
bubo: just-bubo clean test
clean:
cargo clean
## Saves a bit of typing when switching back and forth
test:
cargo test
quick-test:
cargo test --lib --bins --tests -- --skip integration
tmp:
mkdir tmp
all-tests: integration-prepare integration-clean ./tmp/ont-with-bfo.owl
cargo test -- --include-ignored
cargo test --workspace integration -- --include-ignored
integration-prepare: tmp
integration-clean:
- rm ./tmp/bfo.owl
## Main integration tests run as unit tests
integration: integration-prepare integration-clean ./tmp/ont-with-bfo.owl
cargo test integration -- --ignored
## A set of targets which run more interactive test
big-owl:
git clone https://github.com/phillord/big-owl.git
$(MAKE) -C big-owl
./tmp/go-plus.owl: $(BIG_OWL)/go/go-plus.owl
cp $^ $@
./tmp/go.owl: $(BIG_OWL)/go/go.owl
cp $^ $@
./tmp/ont-with-bfo.owl: ./src/ont/owl-rdf/ont-with-bfo.owl
cp $^ $@
## Use a release build because we mostly save more time parsing go,
## than we loose do the release
summary-go: ./tmp/go.owl
cargo run -p horned-bin --bin horned-summary --release -- $^
summary-go-plus: ./tmp/go-plus.owl
cargo run -p horned-bin --bin horned-summary --release -- $^
materialize-with-bfo: ./tmp/ont-with-bfo.owl
cargo run -p horned-bin --bin horned-materialize -- $^
parse-go-snippet:
cargo run -p horned-bin --bin horned-parse -- ./dev/go-short.owl
materialize-dto:
$(MAKE) -C ./big-owl/dto dto_complete.owl
cargo run -p horned-bin --bin horned-materialize -- ./big-owl/dto/dto_complete.owl
parse_dto_gpcr:
cargo run -p horned-bin --bin horned-parse -- ./big-owl/dto/dto_vocabulary_gpcr_gene.owl
triples-round-ont:
cargo run -p horned-bin --bin horned-triples -- --round ./src/ont/owl-rdf/ont.owl
triples-round-class:
cargo run -p horned-bin --bin horned-triples -- --round ./src/ont/owl-rdf/class.owl
triples-round-and:
cargo run -p horned-bin --bin horned-triples -- --round ./src/ont/owl-rdf/and.owl
triples-round-family:
cargo run -p horned-bin --bin horned-triples -- --round ./src/ont/owl-rdf/family.owl
triples-round-all:
set -e; for i in ./src/ont/owl-rdf/*owl;\
do cargo run -p horned-bin --bin horned-triples -- --round $$i;\
echo;echo;echo;\
done
clippy:
cargo clippy
install:
cargo install --path horned-bin
-include makefile-local