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 | EXTRA_DIST = xsltConf.sh.in xslt-config.in libxslt.spec libxslt.spec.in \ |
---|
20 | FEATURES TODO Copyright libxslt.m4 \ |
---|
21 | win32/libxslt/libxslt.def win32/libxslt/libxslt.dsw \ |
---|
22 | win32/libxslt/libxslt_so.dsp win32/libxslt/xsltproc.dsp \ |
---|
23 | $(CVS_EXTRA_DIST) |
---|
24 | |
---|
25 | ## We create xsltConf.sh here and not from configure because we want |
---|
26 | ## to get the paths expanded correctly. Macros like srcdir are given |
---|
27 | ## the value NONE in configure if the user doesn't specify them (this |
---|
28 | ## is an autoconf feature, not a bug). |
---|
29 | |
---|
30 | xsltConf.sh: xsltConf.sh.in Makefile |
---|
31 | ## Use sed and then mv to avoid problems if the user interrupts. |
---|
32 | sed -e 's?\@XSLT_LIBDIR\@?$(XSLT_LIBDIR)?g' \ |
---|
33 | -e 's?\@XSLT_INCLUDEDIR\@?$(XSLT_INCLUDEDIR)?g' \ |
---|
34 | -e 's?\@VERSION\@?$(VERSION)?g' \ |
---|
35 | -e 's?\@XSLT_LIBS\@?$(XSLT_LIBS)?g' \ |
---|
36 | < $(srcdir)/xsltConf.sh.in > xsltConf.tmp \ |
---|
37 | && mv xsltConf.tmp xsltConf.sh |
---|
38 | |
---|
39 | CLEANFILES = xsltConf.sh |
---|
40 | |
---|
41 | check-local: tests |
---|
42 | |
---|
43 | dummy: |
---|
44 | |
---|
45 | tests: dummy |
---|
46 | @echo '## Running the regression test suite' |
---|
47 | @(cd tests ; $(MAKE) MAKEFLAGS+=--silent tests) |
---|
48 | @(if [ "@PYTHON_SUBDIR@" != "" ] ; then cd python ; $(MAKE) MAKEFLAGS+=--silent tests ; fi) |
---|
49 | |
---|
50 | valgrind: |
---|
51 | @echo '## Running the regression tests under Valgrind' |
---|
52 | @echo '## Go get a cup of coffee it is gonna take a while ...' |
---|
53 | @(cd tests ; $(MAKE) CHECKER='valgrind -q' tests) |
---|
54 | |
---|
55 | cleanup: |
---|
56 | -@(find . -name .\#\* -exec rm {} \;) |
---|
57 | |
---|
58 | cleantar: |
---|
59 | @(rm -f libxslt*.tar.gz) |
---|
60 | |
---|
61 | rpm: cleantar |
---|
62 | @(unset CDPATH ; $(MAKE) dist && rpmbuild -ta $(distdir).tar.gz) |
---|
63 | |
---|
64 | |
---|
65 | pkgconfigdir=$(libdir)/pkgconfig |
---|
66 | pkgconfig_DATA = libxslt.pc libexslt.pc |
---|
67 | |
---|
68 | m4datadir = $(datadir)/aclocal |
---|
69 | m4data_DATA = libxslt.m4 |
---|
70 | |
---|