Point to GIT for source code and a bit of cleanup
[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 --exclude .svn 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         @(cd xsltproc ; $(MAKE) MAKEFLAGS+=--silent tests)
51         @(if [ "@PYTHON_SUBDIR@" != "" ] ; then cd python ; $(MAKE) MAKEFLAGS+=--silent tests ; fi)
52
53 valgrind:
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)
58
59 cleanup:
60         -@(find . -name .\#\* -exec rm {} \;)
61
62 cleantar:
63         @(rm -f libxslt*.tar.gz)
64
65 rpm: cleantar
66         @(unset CDPATH ; $(MAKE) dist && rpmbuild -ta $(distdir).tar.gz)
67
68
69 pkgconfigdir=$(libdir)/pkgconfig
70 pkgconfig_DATA = libxslt.pc libexslt.pc
71
72 m4datadir = $(datadir)/aclocal
73 m4data_DATA = libxslt.m4
74