-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (27 loc) · 863 Bytes
/
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
EXTS = _datamodel.py .graphql .schema.json .owl -docs .shex
all: $(patsubst %,src/schema/semqc%, $(EXTS))
test:
pytest test
src/schema/%_datamodel.py: src/schema/%.yaml
gen-py-classes $< > $@
src/schema/%.graphql: src/schema/%.yaml
gen-graphql $< > $@
src/schema/%.schema.json: src/schema/%.yaml
gen-json-schema -t 'metric result collection' $< > $@
src/schema/%.shex: src/schema/%.yaml
gen-shex $< > $@
src/schema/%.csv: src/schema/%.yaml
gen-csv $< > $@
src/schema/%.owl: src/schema/%.yaml
gen-owl $< > $@
src/schema/%.ttl: src/schema/%.owl
cp $< $@
src/schema/%-docs: src/schema/%.yaml
pipenv run gen-markdown --dir $@ $<
deploy-docs:
cp src/schema/semqc-docs/*md docs/
deploy-dm:
cp src/schema/semqc_datamodel.py src/dasher/
# use OBO registry as test
test/data/ontologies.ttl:
curl -L -s http://purl.obolibrary.org/meta/ontologies.ttl > $@