generated from linkml/linkml-template
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathproject.Makefile
33 lines (25 loc) · 1.14 KB
/
project.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
# ---------------------------------------
# CUSTOM VALIDATION
# ---------------------------------------
# TODO: use linkml-run-examples
EXAMPLES = relational-roles rules slot-group path unique-key inlining-union
all-validate: $(patsubst %, validate-%, $(EXAMPLES))
validate-%: examples/%-example.yaml
$(RUN) linkml-validate -C SchemaDefinition -s linkml_model/model/schema/meta.yaml $<
all-examples:
$(RUN) linkml-run-examples -s $(SOURCE_SCHEMA_PATH) -e tests/input/examples/ -d /tmp/TODO
# ---------------------------------------
# SPECIFICATION
# ---------------------------------------
#all-spec: $(SPEC)
TITLE = "LinkML Specification"
SPEC = target/SPECIFICATION.md
#target/docs/0%.md: specification/0%.md
# (cat $< && echo) > $@.tmp && mv $@.tmp $@
$(SPEC): $(wildcard linkml_model/model/docs/specification/0*.md)
# See https://github.com/raghur/mermaid-filter
# doesn't work with pdf? https://github.com/raghur/mermaid-filter/issues/89
SPECIFICATION.pdf: $(SPEC)
pandoc -T $(TITLE) -F mermaid-filter --pdf-engine=xelatex --toc -s $< -o $@
SPECIFICATION.html: $(SPEC)
pandoc -F mermaid-filter --metadata pagetitle=$(TITLE) -f gfm --toc -s $< -o $@