1SUBDIRS = \ 2 libxslt \ 3 libexslt \ 4 xsltproc \ 5 doc \ 6 $(PYTHON_SUBDIR) \ 7 tests 8 9DIST_SUBDIRS = libxslt libexslt xsltproc python doc tests 10 11confexecdir=$(libdir) 12confexec_DATA = xsltConf.sh 13 14bin_SCRIPTS = xslt-config 15 16dist-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 -) 21 22CVS_EXTRA_DIST = 23 24EXTRA_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 \ 28 $(CVS_EXTRA_DIST) 29 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). 34 35xsltConf.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 43 44CLEANFILES = xsltConf.sh 45 46check-local: tests 47 48dummy: 49 50tests: dummy 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) 55 56valgrind: 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) 61 62cleanup: 63 -@(find . -name .\#\* -exec rm {} \;) 64 65cleantar: 66 @(rm -f libxslt*.tar.gz) 67 68rpm: cleantar 69 @(unset CDPATH ; $(MAKE) dist && rpmbuild -ta $(distdir).tar.gz) 70 71 72pkgconfigdir=$(libdir)/pkgconfig 73pkgconfig_DATA = libxslt.pc libexslt.pc 74 75m4datadir = $(datadir)/aclocal 76m4data_DATA = libxslt.m4 77 78