1## Process this file with automake to produce Makefile.in 2 3$(top_builddir)/xsltproc/xsltproc: 4 @(cd ../../xsltproc ; $(MAKE) xsltproc) 5 6EXTRA_DIST = dict.dtd dict.xml dict.xsl result.xml \ 7 out/lettera.orig out/letterb.orig \ 8 out/letterc.orig out/letterd.orig \ 9 out/lettere.orig out/letterf.orig \ 10 out/letterg.orig out/letterh.orig \ 11 out/letterij.orig out/letterk.orig \ 12 out/letterl.orig out/letterm.orig \ 13 out/lettern.orig out/lettero.orig \ 14 out/letterp.orig out/letterq.orig \ 15 out/letterr.orig out/letters.orig \ 16 out/lettert.orig out/letteruv.orig \ 17 out/letterw.orig out/letterx.orig \ 18 out/lettery.orig out/letterz.orig \ 19 out/titlepage.orig 20 21 22GENERATED = \ 23 out/lettera.html out/letterb.html out/letterc.html out/letterd.html \ 24 out/lettere.html out/letterf.html out/letterg.html out/letterh.html \ 25 out/letterij.html out/letterk.html out/letterl.html out/letterm.html \ 26 out/lettern.html out/lettero.html out/letterp.html out/letterq.html \ 27 out/letterr.html out/letters.html out/lettert.html out/letteruv.html \ 28 out/letterw.html out/letterx.html out/lettery.html out/letterz.html \ 29 out/titlepage.html 30 31CLEANFILES = .memdump 32 33valgrind: 34 @echo '## Running the regression tests under Valgrind' 35 $(MAKE) CHECKER='valgrind -q' tests 36 37test tests: $(top_builddir)/xsltproc/xsltproc 38 @echo '## Running multiple tests' 39 @(echo > .memdump) 40 @($(CHECKER) $(top_builddir)/xsltproc/xsltproc $(srcdir)/dict.xsl $(srcdir)/dict.xml > dict.res ; \ 41 diff $(srcdir)/result.xml dict.res; \ 42 for i in out/letter*.html out/titlepage.html ; do \ 43 orig=$(srcdir)/out/`basename $$i .html`.orig ; \ 44 if [ -f $$orig ] ; then \ 45 diff $$orig $$i ; \ 46 else \ 47 echo "new $$orig" ; cp $$i $$orig ; \ 48 fi ; done ; \ 49 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\ 50 rm -f dict.res $(GENERATED)) 51 52 53