diff --git a/Makefile b/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..6491f64fef8c167fef633ad2d46b8081b9607a21 --- /dev/null +++ b/Makefile @@ -0,0 +1,28 @@ +TRANG := trang.cmd +JING := jing.cmd +SAXON := transform.cmd +XSPEC := xspec.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: 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: clean +clean: + $(RM) test/schema/*.rnc + $(RM) test/schema/*.rng + $(RM) test/schema/*.sch + +copy-schema: test/schema/common.rnc test/schema/vocab.rnc