-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
44 lines (28 loc) · 1.38 KB
/
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
.PHONY: docs
default: docs
new: images crm-expand.txt
images: manual/img/crm-all-classes.svg manual/img/crm-extension-classes.svg manual/img/data-flow.svg manual/img/crm-classes.svg manual/img/nomisma-classes.svg manual/img/n4o-classes.svg manual/img/n4o-all-classes.svg manual/img/crm-pg-example.svg manual/img/crm-properties.svg
docs:
QUARTO_PYTHON=.venv/bin/python quarto render manual
preview:
QUARTO_PYTHON=.venv/bin/python quarto preview manual
manual/img/data-flow.mmd: manual/data-flow.pg
pgraph $< --html -t mmd > $@
manual/img/crm-all-classes.svg: voc/crm-all-classes.pg
pgraph $< --html -t mmd | mmdc -i - -o $@
manual/img/crm-extensions-classes.svg: voc/crm-extension-classes.pg
pgraph $< --html -t mmd | mmdc -i - -o $@
manual/img/crm-pg-example.svg: manual/crm-pg-example.pg
pgraph $< --html -t dot | dot -Tsvg -o $@
manual/img/crm-properties.svg: voc/crm-properties.pg
pgraph $< --html -t mmd | mmdc -i - -o $@
manual/img/crm-classes.svg: voc/crm-classes.pg
pgraph $< --html -t mmd | mmdc -i - -o $@
manual/img/nomisma-classes.svg: voc/nomisma-classes.pg
pgraph $< --html -t mmd | mmdc -i - -o $@
manual/img/n4o-classes.svg: voc/n4o-classes.pg
pgraph $< --html -t mmd | mmdc -i - -o $@
nmanual/img/n4o-all-classes.svg: voc/crm-classes.pg voc/n4o-classes.pg
cat $^ | pgraph --html -t mmd | mmdc -i - -o $@
crm-expand.txt: voc/*.pg
npm run --silent expansion $^ > $@