Makefile 969 Bytes
Newer Older
David Maus's avatar
David Maus committed
1
2
3
4
TRANG := trang.cmd
JING  := jing.cmd
SAXON := transform.cmd
XSPEC := xspec.cmd
5
XPROC := calabash.cmd
David Maus's avatar
David Maus committed
6
7
8
9
10
11
12
13
14
15
16
17
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) $< $@

David Maus's avatar
David Maus committed
18
19
20
21
.PHONY: server
server:
	php -S 127.0.0.1:9999 -t public

David Maus's avatar
David Maus committed
22
23
24
25
26
.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

27
28
29
30
.PHONY: validate
validate:
	$(XPROC) src/xproc/validate-rdfxml.xpl

David Maus's avatar
David Maus committed
31
32
33
34
35
.PHONY: clean
clean:
	$(RM) test/schema/*.rnc
	$(RM) test/schema/*.rng
	$(RM) test/schema/*.sch
36
37
	$(RM) test/schema/*-compiled.xspec
	$(RM) -r test/scheme/xspec
David Maus's avatar
David Maus committed
38
39

copy-schema: test/schema/common.rnc test/schema/vocab.rnc
40
41
42

emblem: public/ontology/emblem.rdf
	$(SAXON) -xsl:src/xslt/emblem.xsl -o:public/ontology/emblem.html public/ontology/emblem.rdf