-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (33 loc) · 969 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
34
35
36
37
38
39
40
41
42
TRANG := trang.cmd
JING := jing.cmd
SAXON := transform.cmd
XSPEC := xspec.cmd
XPROC := calabash.cmd
COPY := cp
RM := rm -f
%.rng: %.rnc
$(TRANG) -I rnc -O rng $< $@
%.sch: %.rng
$(SAXON) -xsl:src/xslt/extract-schematron.xsl -o:$@ $<
test/schema/%.rnc: src/schema/%.rnc
$(COPY) $< $@
.PHONY: server
server:
php -S 127.0.0.1:9999 -t public
.PHONY: test
test: copy-schema test/schema/common.sch test/schema/common.xspec test/schema/vocab.sch test/schema/vocab.xspec
$(XSPEC) -s test/schema/common.xspec
$(XSPEC) -s test/schema/vocab.xspec
.PHONY: validate
validate:
$(XPROC) src/xproc/validate-rdfxml.xpl
.PHONY: clean
clean:
$(RM) test/schema/*.rnc
$(RM) test/schema/*.rng
$(RM) test/schema/*.sch
$(RM) test/schema/*-compiled.xspec
$(RM) -r test/scheme/xspec
copy-schema: test/schema/common.rnc test/schema/vocab.rnc
emblem: public/ontology/emblem.rdf
$(SAXON) -xsl:src/xslt/emblem.xsl -o:public/ontology/emblem.html public/ontology/emblem.rdf