From dce8a82d1e1cc03ee0801b00ca5b631515a4fc76 Mon Sep 17 00:00:00 2001 From: David Maus <maus@hab.de> Date: Wed, 18 Oct 2017 14:31:10 +0200 Subject: [PATCH] Makefile --- Makefile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 000000000..6491f64fe --- /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 -- GitLab