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         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 
  22 CVS_EXTRA_DIST =
  23 
  24 EXTRA_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 
  35 xsltConf.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 
  44 CLEANFILES = xsltConf.sh
  45 
  46 check-local: tests
  47 
  48 dummy:
  49 
  50 tests: 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 
  56 valgrind:
  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 
  62 cleanup:
  63         -@(find . -name .\#\* -exec rm {} \;)
  64 
  65 cleantar:
  66         @(rm -f libxslt*.tar.gz)
  67 
  68 rpm: cleantar
  69         @(unset CDPATH ; $(MAKE) dist && rpmbuild -ta $(distdir).tar.gz)
  70 
  71 
  72 pkgconfigdir=$(libdir)/pkgconfig
  73 pkgconfig_DATA = libxslt.pc libexslt.pc
  74 
  75 m4datadir = $(datadir)/aclocal
  76 m4data_DATA = libxslt.m4
  77