preparing release of libxslt-1.1.18, this bumps libxml2 requirement to
[platform/upstream/libxslt.git] / Makefile.am
1 SUBDIRS = \
2         libxslt \
3         libexslt \
4         xsltproc \
5         doc \
6         @PYTHON_SUBDIR@ \
7         tests
8
9 DIST_SUBDIRS = libxslt libexslt xsltproc python doc tests
10
11 confexecdir=$(libdir)
12 confexec_DATA = xsltConf.sh
13
14 bin_SCRIPTS = xslt-config
15
16 dist-hook: cleanup libxslt.spec
17         (cd $(srcdir) ; tar -cf - --exclude CVS win32 vms examples) | (cd $(distdir); tar xf -)
18
19 CVS_EXTRA_DIST =
20
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 \
25              $(CVS_EXTRA_DIST)
26
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).
31
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
40
41 CLEANFILES = xsltConf.sh
42
43 check-local: tests
44
45 dummy:
46
47 tests: dummy
48         @echo '## Running the regression test suite'
49         @(cd tests ; $(MAKE) MAKEFLAGS+=--silent tests)
50         @(if [ "@PYTHON_SUBDIR@" != "" ] ; then cd python ; $(MAKE) MAKEFLAGS+=--silent tests ; fi)
51
52 valgrind:
53         @echo '## Running the regression tests under Valgrind'
54         @echo '## Go get a cup of coffee it is gonna take a while ...'
55         @(cd tests ; $(MAKE) CHECKER='valgrind -q' tests)
56
57 cleanup:
58         -@(find . -name .\#\* -exec rm {} \;)
59
60 cleantar:
61         @(rm -f libxslt*.tar.gz)
62
63 rpm: cleantar
64         @(unset CDPATH ; $(MAKE) dist && rpmbuild -ta $(distdir).tar.gz)
65
66
67 pkgconfigdir=$(libdir)/pkgconfig
68 pkgconfig_DATA = libxslt.pc libexslt.pc
69
70 m4datadir = $(datadir)/aclocal
71 m4data_DATA = libxslt.m4
72