1## Process this file with automake to produce Makefile.in 2 3$(top_builddir)/xsltproc/xsltproc: 4 @(cd ../../../xsltproc ; $(MAKE) xsltproc) 5 6EXTRA_DIST = plugin.out plugin.xml plugin.xsl 7 8AM_CPPFLAGS = -I$(top_srcdir) -I../../libxslt 9 10CLEANFILES = *.res 11 12if WITH_MODULES 13 14noinst_LTLIBRARIES = xmlsoft_org_xslt_testplugin.la 15 16# our rpath is a rather unorthodox location as we 17# don't want to pollute $(DESTDIR) with the test plugin 18 19plugindir = $(abs_builddir)/.libs 20 21xmlsoft_org_xslt_testplugin_la_CFLAGS = -DMODULE_COMPILE $(LIBXML_CFLAGS) $(LIBXSLT_CFLAGS) 22xmlsoft_org_xslt_testplugin_la_SOURCES = testplugin.c 23xmlsoft_org_xslt_testplugin_la_LIBADD = $(top_builddir)/libxslt/libxslt.la $(EXTRA_LIBS) 24xmlsoft_org_xslt_testplugin_la_LDFLAGS = -module -avoid-version -rpath $(plugindir) 25 26test-logall: 27 @echo '## Running plugin tests' 28 29test tests: $(top_builddir)/xsltproc/xsltproc test-logall $(noinst_LTLIBRARIES) 30 @LD_LIBRARY_PATH=$(plugindir):$(top_builddir)/libxslt/.libs:$(LD_LIBRARY_PATH) \ 31 LIBXSLT_PLUGINS_PATH=$(plugindir) \ 32 $(top_builddir)/xsltproc/xsltproc plugin.xsl plugin.xml > plugin.res 33 @diff plugin.out plugin.res 34 @rm plugin.res 35 36else 37 38test tests: 39 @echo Skipping the plugin tests. 40 41endif 42 43