summaryrefslogtreecommitdiff
path: root/tests/multiple/Makefile.am
blob: 9136499ddd89736415f4477e8c2d5bf700f5ac1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
## Process this file with automake to produce Makefile.in

$(top_builddir)/libxslt/xsltproc:
	@(cd ../../libxslt ; make xsltproc)

EXTRA_DIST = dict.dtd  dict.xml  dict.xsl result.xml \
    out/lettera.orig out/letterb.orig \
    out/letterc.orig out/letterd.orig \
    out/lettere.orig out/letterf.orig \
    out/letterg.orig out/letterh.orig \
    out/letterij.orig out/letterk.orig \
    out/letterl.orig out/letterm.orig \
    out/lettern.orig out/lettero.orig \
    out/letterp.orig out/letterq.orig \
    out/letterr.orig out/letters.orig \
    out/lettert.orig out/letteruv.orig \
    out/letterw.orig out/letterx.orig \
    out/lettery.orig out/letterz.orig \
    out/titlepage.orig


GENERATED = \
	out/lettera.html out/letterb.html out/letterc.html out/letterd.html \
	out/lettere.html out/letterf.html out/letterg.html out/letterh.html \
	out/letterij.html out/letterk.html out/letterl.html out/letterm.html \
	out/lettern.html out/lettero.html out/letterp.html out/letterq.html \
	out/letterr.html out/letters.html out/lettert.html out/letteruv.html \
	out/letterw.html out/letterx.html out/lettery.html out/letterz.html \
	out/titlepage.html

all: test

test tests: $(top_builddir)/libxslt/xsltproc
	@(echo > .memdump)
	@($(top_builddir)/libxslt/xsltproc $(srcdir)/dict.xsl $(srcdir)/dict.xml > dict.res ; \
	diff $(srcdir)/result.xml dict.res; \
	for i in $(srcdir)/out/letter*.html $(srcdir)/out/titlepage.html ; do \
	  orig=$(srcdir)/out/`basename $$i .html`.orig ; \
	  if [ -f $$orig ] ; then \
	    diff $$orig $$i ; \
	  else \
	    echo "new $$orig" ; cp $$i $$orig ; \
	  fi ; done ; \
	grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0" || true;\
	rm -f dict.res $(GENERATED))