aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2024-04-28 10:24:03 +0200
committerJonas Smedegaard <dr@jones.dk>2024-04-28 10:24:03 +0200
commit644e05f937578acf4d13b6c42834191c086e9102 (patch)
tree0e31e8fbe60e585cf063a96d3fb256d4833c5c33
parentdb08d182bba26295f99a100299ec31ca5bc72e68 (diff)
improve ontology targets
-rw-r--r--Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index d073794..cc799bb 100644
--- a/Makefile
+++ b/Makefile
@@ -149,16 +149,16 @@ $(ARTICLES:%=%/b.tex): %/b.tex:
rm --force _site/b.pdf
$(ONTOLOGIES:%=rdf/%.svg): rdf/%.svg: rdf/%.sdm
- cd rdf && sdml draw --diagram concepts -i $*.sdm -f svg -o $*.svg
+ sdml draw --diagram concepts -i $< -f svg -o $@
$(ONTOLOGIES:%=rdf/%-er.svg): rdf/%-er.svg: rdf/%.sdm
- cd rdf && sdml draw --diagram entity-relationship -i $*.sdm -f svg -o $*-er.svg
+ sdml draw --diagram entity-relationship -i $< -f svg -o $@
$(ONTOLOGIES:%=rdf/%-uml.svg): rdf/%-uml.svg: rdf/%.sdm
- cd rdf && sdml draw --diagram uml-class -i $*.sdm -f svg -o $*-uml.svg
+ sdml draw --diagram uml-class -i $< -f svg -o $@
$(ONTOLOGIES:%=rdf/%.rdf): rdf/%.rdf: rdf/%.sdm
- cd rdf && sdml convert -i $*.sdm -f rdf -o $*.rdf --no-color
+ sdml convert -i $< -f rdf -o $@ --no-color
$(ONTOLOGIES:%=rdfs-graf-of-%): rdfs-graf-of-%: rdf/%.sdm
- sdml convert -f rdf -i $< --no-color | rdfs2dot | dot -Tx11
+ sdml convert -f rdf -i $< --no-color | rdfs2dot | xdot -