1ACLOCAL_AMFLAGS = -I m4 2 3SUBDIRS = libxslt libexslt xsltproc doc tests 4if WITH_PYTHON 5SUBDIRS += python 6endif 7 8DIST_SUBDIRS = libxslt libexslt xsltproc python doc tests 9 10confexecdir=$(libdir) 11confexec_DATA = xsltConf.sh 12 13bin_SCRIPTS = xslt-config 14 15dist-hook: cleanup 16 touch $(distdir)/doc/*.xml 17 touch $(distdir)/doc/EXSLT/*.xml 18 touch $(distdir)/libxslt/*.syms 19 (cd $(srcdir) ; tar -cf - win32 vms examples) | (cd $(distdir); tar xf -) 20 21EXTRA_DIST = xsltConf.sh.in \ 22 FEATURES TODO Copyright \ 23 CMakeLists.txt config.h.cmake.in libxslt-config.cmake.in libxslt-config.cmake.cmake.in 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 30xsltConf.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) $(EXTRA_LIBS)?g' \ 36 -e 's?\@XSLT_PRIVATE_LIBS\@?$(XSLT_PRIVATE_LIBS)?g' \ 37 < $(srcdir)/xsltConf.sh.in > xsltConf.tmp \ 38 && mv xsltConf.tmp xsltConf.sh 39 40CLEANFILES = xsltConf.sh 41 42check-local: tests 43 44dummy: 45 46tests: dummy 47 @echo '## Running the regression test suite' 48 @(cd tests ; $(MAKE) -s tests) 49 @(cd xsltproc ; $(MAKE) -s tests) 50if WITH_PYTHON 51 @cd python && $(MAKE) tests 52endif 53 54valgrind: 55 @echo '## Running the regression tests under Valgrind' 56 @echo '## Go get a cup of coffee it is gonna take a while ...' 57 @(cd tests ; $(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests) 58 @(cd xsltproc ; $(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests) 59 60cleanup: 61 -@(find . -name .\#\* -exec rm {} \;) 62 63cleantar: 64 @(rm -f libxslt*.tar.gz) 65 66rpm: cleantar 67 @(unset CDPATH ; $(MAKE) dist && rpmbuild -ta $(distdir).tar.gz) 68 69 70pkgconfigdir=$(libdir)/pkgconfig 71pkgconfig_DATA = libxslt.pc libexslt.pc 72 73cmakedir = $(libdir)/cmake/libxslt 74dist_cmake_DATA = FindGcrypt.cmake 75cmake_DATA = libxslt-config.cmake 76 77m4datadir = $(datadir)/aclocal 78dist_m4data_DATA = libxslt.m4 79 80