Skip to content

Commit

Permalink
Merge pull request #3028 from obophenotype/cleaning-up-makefile
Browse files Browse the repository at this point in the history
Cleaning up makefile
  • Loading branch information
gouttegd authored Aug 23, 2023
2 parents fa629f5 + a719af2 commit 1709721
Show file tree
Hide file tree
Showing 4 changed files with 910 additions and 1,468 deletions.
11 changes: 1 addition & 10 deletions src/ontology/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ PATTERN_RELEASE_FILES= $(PATTERNDIR)/definitions.owl $(PATTERNDIR)/pattern.

FORMATS = $(sort owl obo json owl)
FORMATS_INCL_TSV = $(sort $(FORMATS) tsv)
RELEASE_ARTEFACTS = $(sort $(ONT)-base $(ONT)-full $(ONT)-simple $(ONT)-basic ext basic composite-metazoan composite-metazoan-basic composite-vertebrate composite-vertebrate-basic common-anatomy )
RELEASE_ARTEFACTS = $(sort $(ONT)-base $(ONT)-full $(ONT)-simple $(ONT)-basic basic composite-metazoan composite-metazoan-basic composite-vertebrate composite-vertebrate-basic common-anatomy )

# ----------------------------------------
# Top-level targets
Expand Down Expand Up @@ -668,12 +668,6 @@ $(ONT)-basic.json: $(ONT)-basic.owl
$(ROBOT) annotate --input $< --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) \
convert --check false -f json -o $@.tmp.json &&\
mv $@.tmp.json $@
ext.obo: ext.owl
$(ROBOT) convert --input $< --check false -f obo $(OBO_FORMAT_OPTIONS) -o $@.tmp.obo && grep -v ^owl-axioms $@.tmp.obo > $@ && rm $@.tmp.obo
ext.json: ext.owl
$(ROBOT) annotate --input $< --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) \
convert --check false -f json -o $@.tmp.json &&\
mv $@.tmp.json $@
basic.obo: basic.owl
$(ROBOT) convert --input $< --check false -f obo $(OBO_FORMAT_OPTIONS) -o $@.tmp.obo && grep -v ^owl-axioms $@.tmp.obo > $@ && rm $@.tmp.obo
basic.json: basic.owl
Expand Down Expand Up @@ -781,9 +775,6 @@ $(ONT)-basic.owl: $(EDIT_PREPROCESSED) $(OTHER_SRC) $(SIMPLESEED) $(KEEPRELATION
reduce -r ELK \
$(SHARED_ROBOT_COMMANDS) annotate --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) --output $@.tmp.owl && mv $@.tmp.owl $@

ext.owl:
echo "ERROR: You have configured a custom release artefact ($@); this release artefact needs to be define in uberon.Makefile!" && false

basic.owl:
echo "ERROR: You have configured a custom release artefact ($@); this release artefact needs to be define in uberon.Makefile!" && false

Expand Down
2 changes: 1 addition & 1 deletion src/ontology/bridge/collected-drosophila.owl
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
</rdfs:comment>
<owl:imports rdf:resource="http://purl.obolibrary.org/obo/uberon.owl"/>
<owl:imports rdf:resource="http://purl.obolibrary.org/obo/uberon/bridge/uberon-bridge-to-fbbt.owl"/>
<owl:imports rdf:resource="http://purl.obolibrary.org/obo/uberon/fbbt-nd.owl"/>
<owl:imports rdf:resource="http://purl.obolibrary.org/obo/fbbt.owl"/>
</owl:Ontology>
</rdf:RDF>
1 change: 0 additions & 1 deletion src/ontology/uberon-odk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ release_artefacts:
- full
- simple
- basic
- custom-ext
- custom-basic
- custom-composite-metazoan
- custom-composite-metazoan-basic
Expand Down
Loading

0 comments on commit 1709721

Please sign in to comment.