summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorShaun McCance <shaunm@src.gnome.org>2004-05-11 00:16:13 +0000
committerShaun McCance <shaunm@src.gnome.org>2004-05-11 00:16:13 +0000
commitf962388e294c54f0335e27e45310378454a49895 (patch)
tree7817c9f3ca7b4930c24807c10feaea960b355a6a /test
parent6d9a07086dd39f56a4e4c8747fe95023d35ff31e (diff)
downloadgnome-doc-utils-f962388e294c54f0335e27e45310378454a49895.tar.gz
- Hooking up the testdocs right
* test/testdocs/Makefile.am: - Hooking up the testdocs right * xslt/docbook/Makefile.am: - Added common to SUBDIRS * xslt/docbook/common/db-chunk.xsl: - Added db.chunk.chunk_top and filename params for special files * xslt/docbook/common/db-common.xsl: * xslt/gettext/gettext.xsl: - Moved db.dingbat from gettext to db-common * xslt/docbook/html/db2html-block.xsl: - Changed para to db2html.para, as it should be * xslt/docbook/html/db2html-info.xsl: - Added support for corpcredit - Made db.personname calling work * xslt/docbook/html/db2html-inline.xsl: - Added code and corpcredit support - Calling db.dingbat, now in db-common * xslt/docbook/html/db2html-label.xsl: - Fixed erroneous $sect reference * xslt/docbook/html/db2html-suppressed.xsl: - Added beginpage * xslt/docbook/html/db2html.xsl: - Moved stuff around, putting more work on db-chunk
Diffstat (limited to 'test')
-rw-r--r--test/testdocs/Makefile.am18
1 files changed, 13 insertions, 5 deletions
diff --git a/test/testdocs/Makefile.am b/test/testdocs/Makefile.am
index f01c5cf..601ec62 100644
--- a/test/testdocs/Makefile.am
+++ b/test/testdocs/Makefile.am
@@ -1,9 +1,17 @@
db2html = $(top_srcdir)/xslt/docbook/html/db2html.xsl
-tests = $(wildcard *.xml)
-htmls = $(patsubst %.xml,%.html,$(tests))
+tests = $(filter-out template.xml,$(wildcard *.xml))
+htmls = $(patsubst %.xml,html/%,$(tests))
-$(htmls) : %.html : %.xml
- xsltproc -o $@ $(db2html) $<
+htmlargs = \
+ -o $@/$(patsubst html/%,%.html,$1) \
+ --stringparam db.chunk.max_depth 0 \
+ --param db.chunk.chunk_top 'false()' \
+ --stringparam db.chunk.basename $(patsubst html/%,%,$1) \
+ $(db2html)
-check-local: $(htmls)
+$(htmls) : html/% : %.xml
+ @mkdir -p $@
+ xsltproc $(call htmlargs,$@) $<
+
+test: $(htmls)