-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathpato.Makefile
49 lines (37 loc) · 1.63 KB
/
pato.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
## Customize Makefile settings for pato
##
## If you need to customize your Makefile, make
## changes here rather than in the main Makefile
#pre_release: $(SRCOWL)
$(ONT).obo: $(ONT)-simple.owl
$(ROBOT) annotate --input $(ONT)-simple.owl --ontology-iri $(URIBASE)/$(ONT).owl --version-iri $(ONTBASE)/releases/$(TODAY)/$@ \
convert --check false -f obo $(OBO_FORMAT_OPTIONS) -o [email protected] && grep -v ^owl-axioms [email protected] > $@ && rm [email protected]
#pato-edit-donotedit.owl:
# $(ROBOT) convert -i $(SRC) -f owl -o $@
x:
$(ROBOT) merge --input $(ONT)-simple.owl \
convert -f obo --check false -o ../../pato.obo
#t: pato-edit-donotedit.owl
# $(ROBOT) merge -i pato-edit-donotedit.owl \
# reason --reasoner ELK --equivalent-classes-allowed all --exclude-tautologies structural \
# relax \
# remove --axioms equivalent \
# relax \
# filter --term-file $(SIMPLESEED) --select "annotations ontology anonymous self" --trim true --signature true \
# reduce -r ELK \
# annotate --ontology-iri $(ONTBASE)/$@ --version-iri $(ONTBASE)/releases/$(TODAY)/$@ --output [email protected] && mv [email protected] $(ONT)-simple.owl
tmp/merged.obo: $(SRC)
$(ROBOT) merge -i $< convert -f obo --check false -o $@
.PHONY: test_obsolete
test_obsolete: tmp/merged.obo
! grep "! obsolete" $<
test: test_obsolete
benchmark_imports:
/usr/bin/time -f %M make refresh-imports
RELEASE_ASSETS_RELEASE_DIR=$(foreach n,$(RELEASE_ASSETS), ../../$(n))
.PHONY: public_release
public_release:
@test $(GHVERSION)
ls -alt $(RELEASE_ASSETS_RELEASE_DIR)
gh auth login
gh release create $(GHVERSION) --notes "TBD." --title "$(GHVERSION)" --draft $(RELEASE_ASSETS_RELEASE_DIR) --generate-notes