9 DIST_SUBDIRS = libxslt libexslt xsltproc python doc tests
12 confexec_DATA = xsltConf.sh
14 bin_SCRIPTS = xslt-config
16 dist-hook: cleanup libxslt.spec
17 (cd $(srcdir) ; tar -cf - --exclude CVS --exclude .svn win32 vms examples) | (cd $(distdir); tar xf -)
21 EXTRA_DIST = xsltConf.sh.in xslt-config.in libxslt.spec libxslt.spec.in \
22 FEATURES TODO Copyright libxslt.m4 \
23 win32/libxslt/libxslt.def win32/libxslt/libxslt.dsw \
24 win32/libxslt/libxslt_so.dsp win32/libxslt/xsltproc.dsp \
27 ## We create xsltConf.sh here and not from configure because we want
28 ## to get the paths expanded correctly. Macros like srcdir are given
29 ## the value NONE in configure if the user doesn't specify them (this
30 ## is an autoconf feature, not a bug).
32 xsltConf.sh: xsltConf.sh.in Makefile
33 ## Use sed and then mv to avoid problems if the user interrupts.
34 sed -e 's?\@XSLT_LIBDIR\@?$(XSLT_LIBDIR)?g' \
35 -e 's?\@XSLT_INCLUDEDIR\@?$(XSLT_INCLUDEDIR)?g' \
36 -e 's?\@VERSION\@?$(VERSION)?g' \
37 -e 's?\@XSLT_LIBS\@?$(XSLT_LIBS)?g' \
38 < $(srcdir)/xsltConf.sh.in > xsltConf.tmp \
39 && mv xsltConf.tmp xsltConf.sh
41 CLEANFILES = xsltConf.sh
48 @echo '## Running the regression test suite'
49 @(cd tests ; $(MAKE) MAKEFLAGS+=--silent tests)
50 @(cd xsltproc ; $(MAKE) MAKEFLAGS+=--silent tests)
51 @(if [ "@PYTHON_SUBDIR@" != "" ] ; then cd python ; $(MAKE) MAKEFLAGS+=--silent tests ; fi)
54 @echo '## Running the regression tests under Valgrind'
55 @echo '## Go get a cup of coffee it is gonna take a while ...'
56 @(cd tests ; $(MAKE) CHECKER='valgrind -q' tests)
57 @(cd xsltproc ; $(MAKE) CHECKER='valgrind -q' tests)
60 -@(find . -name .\#\* -exec rm {} \;)
63 @(rm -f libxslt*.tar.gz)
66 @(unset CDPATH ; $(MAKE) dist && rpmbuild -ta $(distdir).tar.gz)
69 pkgconfigdir=$(libdir)/pkgconfig
70 pkgconfig_DATA = libxslt.pc libexslt.pc
72 m4datadir = $(datadir)/aclocal
73 m4data_DATA = libxslt.m4