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 touch $(distdir)/doc/*.xml
18 touch $(distdir)/doc/EXSLT/*.xml
19 touch $(distdir)/libxslt/*.syms
20 (cd $(srcdir) ; tar -cf - --exclude CVS --exclude .svn win32 vms examples) | (cd $(distdir); tar xf -)
24 EXTRA_DIST = xsltConf.sh.in xslt-config.in libxslt.spec libxslt.spec.in \
25 FEATURES TODO Copyright libxslt.m4 \
26 win32/libxslt/libxslt.def win32/libxslt/libxslt.dsw \
27 win32/libxslt/libxslt_so.dsp win32/libxslt/xsltproc.dsp \
30 ## We create xsltConf.sh here and not from configure because we want
31 ## to get the paths expanded correctly. Macros like srcdir are given
32 ## the value NONE in configure if the user doesn't specify them (this
33 ## is an autoconf feature, not a bug).
35 xsltConf.sh: xsltConf.sh.in Makefile
36 ## Use sed and then mv to avoid problems if the user interrupts.
37 sed -e 's?\@XSLT_LIBDIR\@?$(XSLT_LIBDIR)?g' \
38 -e 's?\@XSLT_INCLUDEDIR\@?$(XSLT_INCLUDEDIR)?g' \
39 -e 's?\@VERSION\@?$(VERSION)?g' \
40 -e 's?\@XSLT_LIBS\@?$(XSLT_LIBS) $(EXTRA_LIBS)?g' \
41 < $(srcdir)/xsltConf.sh.in > xsltConf.tmp \
42 && mv xsltConf.tmp xsltConf.sh
44 CLEANFILES = xsltConf.sh
51 @echo '## Running the regression test suite'
52 @(cd tests ; $(MAKE) tests)
53 @(cd xsltproc ; $(MAKE) tests)
54 @(if [ "$(PYTHON_SUBDIR)" != "" ] ; then cd python ; $(MAKE) tests ; fi)
57 @echo '## Running the regression tests under Valgrind'
58 @echo '## Go get a cup of coffee it is gonna take a while ...'
59 @(cd tests ; $(MAKE) CHECKER='valgrind -q' tests)
60 @(cd xsltproc ; $(MAKE) CHECKER='valgrind -q' tests)
63 -@(find . -name .\#\* -exec rm {} \;)
66 @(rm -f libxslt*.tar.gz)
69 @(unset CDPATH ; $(MAKE) dist && rpmbuild -ta $(distdir).tar.gz)
72 pkgconfigdir=$(libdir)/pkgconfig
73 pkgconfig_DATA = libxslt.pc libexslt.pc
75 m4datadir = $(datadir)/aclocal
76 m4data_DATA = libxslt.m4