grim/gplate

355ba9b6b146
Parents 452c689a9bd0
Children 707f5bb1b94f
Some build file tweaks for the html output
--- a/configure.ac Sun Feb 10 09:54:17 2008 -0600
+++ b/configure.ac Sun Feb 10 10:46:24 2008 -0600
@@ -158,6 +158,12 @@
GTK_DOC_CHECK([1.0])
dnl #######################################################################
+dnl # xsltproc
+dnl #######################################################################
+AC_PATH_PROG(XSLTPROC, xsltproc, [yes], [no])
+AM_CONDITIONAL(HAVE_XSLTPROC, test x"$XSLTPROC" = x"yes")
+
+dnl #######################################################################
dnl # Finish up
dnl #######################################################################
AC_OUTPUT([Makefile
--- a/tests/Makefile.am Sun Feb 10 09:54:17 2008 -0600
+++ b/tests/Makefile.am Sun Feb 10 10:46:24 2008 -0600
@@ -5,6 +5,8 @@
SUBDIRS=html
+CLEANFILES=
+
if BUILD_TESTS
TESTS=test
@@ -29,14 +31,22 @@
$(CHECK_CFLAGS) \
$(GLIB_CFLAGS)
-html: gplate-tests.xml
+if HAVE_XSLTPROC
+
+BUILT_SOURCES=results.html
+
+CLEANFILES+=results.html
+
+results.html: gplate-tests.xml
xsltproc \
--nonet \
--stringparam project GPlate \
--stringparam arch `uname -m` \
--stringparam version $(VERSION) \
- -o html/results.html \
+ -o results.html \
check.xsl \
gplate-tests.xml
endif
+
+endif
--- a/tests/html/Makefile.am Sun Feb 10 09:54:17 2008 -0600
+++ b/tests/html/Makefile.am Sun Feb 10 10:46:24 2008 -0600
@@ -1,3 +1,15 @@
EXTRA_DIST=\
failed.png \
passed.png
+
+CLEANFILES=results.html
+
+if HAVE_XSLTPROC
+
+EXTRA_DIST+=results.html
+
+results.html: ../results.html
+ cp ../results.html .
+
+endif
+