diff --git a/.gitignore b/.gitignore index 30eab36..25d3c42 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ /test/index.html /test/**/xspec/ +/src/**/*.texi *.apply *.info diff --git a/.gitmodules b/.gitmodules index 1879933..ff05b62 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "tools/xspec"] path = tools/xspec url = https://github.com/lovullo/xspec +[submodule "tools/xsltexi"] + path = tools/xsltexi + url = https://github.com/lovullo/xsltexi diff --git a/Makefile.am b/Makefile.am index cabdab3..2ee812c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -18,14 +18,14 @@ SUBDIRS = doc -path_src := src -path_test := test +path_src := src +path_test := test test_apply := $(path_test)/apply/partial-test.xsl.apply \ $(path_test)/apply/thrush-test.xsl.apply \ $(path_test)/transform/apply-gen-test-in.xsl.apply -.PHONY: check test +.PHONY: check test texis test: check check: $(test_apply) @@ -35,6 +35,3 @@ check: $(test_apply) $(JAVA) -jar "$(SAXON_CP)" \ -xsl:"$(path_src)/transform/apply-gen.xsl" \ "$<" > "$@" - -clean: - $(RM) "$(test_in_apply_gen)" diff --git a/doc/Makefile.am b/doc/Makefile.am index e5f95f4..71ac894 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -18,7 +18,22 @@ # along with this program. If not, see . ## +path_src := ../src +path_tools := ../tools + +stylesheets := $(shell find "$(path_src)" -name '*.xsl') +stexi := $(stylesheets:.xsl=.texi) + info_TEXINFOS = hoxsl.texi -hoxsl_TEXINFOS = license.texi +hoxsl_TEXINFOS = license.texi $(stexi) MAKEINFOHTML=$(MAKEINFO) --html + +xsltexis: $(stexi) +%.texi: %.xsl + $(JAVA) -jar "$(SAXON_CP)" \ + -xsl:"$(path_tools)/xsltexi/src/xsltexi.xsl" \ + "$<" > "$@" + +clean-local: + -rm -f $(stexi) diff --git a/tools/xsltexi b/tools/xsltexi new file mode 160000 index 0000000..5cded3d --- /dev/null +++ b/tools/xsltexi @@ -0,0 +1 @@ +Subproject commit 5cded3d64bec3c0c2b42b67169aa27cf5810bc50