1 | ##
|
---|
2 | ## This file is auto-generated by index.py
|
---|
3 | ## DO NOT EDIT !!!
|
---|
4 | ##
|
---|
5 |
|
---|
6 | AM_CPPFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(srcdir)/include
|
---|
7 | AM_CFLAGS = $(THREAD_CFLAGS) $(Z_CFLAGS)
|
---|
8 | LDADD = $(RDL_LIBS) $(STATIC_BINARIES) $(top_builddir)/libxml2.la $(THREAD_LIBS) $(Z_LIBS) $(ICONV_LIBS) -lm $(WIN32_EXTRA_LIBADD)
|
---|
9 |
|
---|
10 | CLEANFILES = *.tmp
|
---|
11 |
|
---|
12 | if REBUILD_DOCS
|
---|
13 | rebuild: examples.xml index.html
|
---|
14 | .PHONY: rebuild
|
---|
15 |
|
---|
16 | examples.xml: index.py $(noinst_PROGRAMS:=.c)
|
---|
17 | cd $(srcdir) && $(PYTHON) index.py
|
---|
18 | $(MAKE) Makefile
|
---|
19 |
|
---|
20 | index.html: examples.xml examples.xsl
|
---|
21 | cd $(srcdir) && xsltproc examples.xsl examples.xml && echo "Rebuilt web page"
|
---|
22 | -cd $(srcdir) && xmllint --valid --noout index.html
|
---|
23 | endif
|
---|
24 |
|
---|
25 | install-data-local:
|
---|
26 | $(MKDIR_P) $(DESTDIR)$(HTML_DIR)
|
---|
27 | -$(INSTALL) -m 0644 $(srcdir)/*.html $(srcdir)/*.c $(srcdir)/*.xml $(srcdir)/*.xsl $(srcdir)/*.res $(DESTDIR)$(HTML_DIR)
|
---|
28 |
|
---|
29 | clean-local:
|
---|
30 | test -f Makefile.am || rm -f test?.xml
|
---|
31 |
|
---|
32 | EXTRA_DIST = \
|
---|
33 | examples.xml \
|
---|
34 | examples.xsl \
|
---|
35 | index.html \
|
---|
36 | index.py \
|
---|
37 | io1.res \
|
---|
38 | io2.res \
|
---|
39 | reader1.res \
|
---|
40 | reader3.res \
|
---|
41 | reader4.res \
|
---|
42 | test1.xml \
|
---|
43 | test2.xml \
|
---|
44 | test3.xml \
|
---|
45 | tree1.res \
|
---|
46 | tree2.res \
|
---|
47 | tst.xml \
|
---|
48 | writer.xml \
|
---|
49 | xpath1.res \
|
---|
50 | xpath2.res
|
---|
51 |
|
---|
52 | noinst_PROGRAMS = \
|
---|
53 | io1 \
|
---|
54 | io2 \
|
---|
55 | parse1 \
|
---|
56 | parse2 \
|
---|
57 | parse3 \
|
---|
58 | parse4 \
|
---|
59 | reader1 \
|
---|
60 | reader2 \
|
---|
61 | reader3 \
|
---|
62 | reader4 \
|
---|
63 | testWriter \
|
---|
64 | tree1 \
|
---|
65 | tree2 \
|
---|
66 | xpath1 \
|
---|
67 | xpath2
|
---|
68 |
|
---|
69 | io1_SOURCES = io1.c
|
---|
70 |
|
---|
71 | io2_SOURCES = io2.c
|
---|
72 |
|
---|
73 | parse1_SOURCES = parse1.c
|
---|
74 |
|
---|
75 | parse2_SOURCES = parse2.c
|
---|
76 |
|
---|
77 | parse3_SOURCES = parse3.c
|
---|
78 |
|
---|
79 | parse4_SOURCES = parse4.c
|
---|
80 |
|
---|
81 | reader1_SOURCES = reader1.c
|
---|
82 |
|
---|
83 | reader2_SOURCES = reader2.c
|
---|
84 |
|
---|
85 | reader3_SOURCES = reader3.c
|
---|
86 |
|
---|
87 | reader4_SOURCES = reader4.c
|
---|
88 |
|
---|
89 | testWriter_SOURCES = testWriter.c
|
---|
90 |
|
---|
91 | tree1_SOURCES = tree1.c
|
---|
92 |
|
---|
93 | tree2_SOURCES = tree2.c
|
---|
94 |
|
---|
95 | xpath1_SOURCES = xpath1.c
|
---|
96 |
|
---|
97 | xpath2_SOURCES = xpath2.c
|
---|
98 |
|
---|
99 | valgrind:
|
---|
100 | $(MAKE) CHECKER='valgrind' tests
|
---|
101 |
|
---|
102 | tests: $(noinst_PROGRAMS)
|
---|
103 | test -f Makefile.am || test -f test1.xml || $(LN_S) $(srcdir)/test?.xml .
|
---|
104 | @(echo '## examples regression tests')
|
---|
105 | @(echo > .memdump)
|
---|
106 | $(CHECKER) ./io1 > io1.tmp && diff io1.tmp $(srcdir)/io1.res
|
---|
107 | @grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0
|
---|
108 | $(CHECKER) ./io2 > io2.tmp && diff io2.tmp $(srcdir)/io2.res
|
---|
109 | @grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0
|
---|
110 | $(CHECKER) ./parse1 test1.xml
|
---|
111 | @grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0
|
---|
112 | $(CHECKER) ./parse2 test2.xml
|
---|
113 | @grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0
|
---|
114 | $(CHECKER) ./parse3
|
---|
115 | @grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0
|
---|
116 | $(CHECKER) ./parse4 test3.xml
|
---|
117 | @grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0
|
---|
118 | $(CHECKER) ./reader1 test2.xml > reader1.tmp && diff reader1.tmp $(srcdir)/reader1.res
|
---|
119 | @grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0
|
---|
120 | $(CHECKER) ./reader2 test2.xml > reader1.tmp && diff reader1.tmp $(srcdir)/reader1.res
|
---|
121 | @grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0
|
---|
122 | $(CHECKER) ./reader3 > reader3.tmp && diff reader3.tmp $(srcdir)/reader3.res
|
---|
123 | @grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0
|
---|
124 | $(CHECKER) ./reader4 test1.xml test2.xml test3.xml > reader4.tmp && diff reader4.tmp $(srcdir)/reader4.res
|
---|
125 | @grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0
|
---|
126 | $(CHECKER) ./testWriter && for i in 1 2 3 4 ; do diff $(srcdir)/writer.xml writer$$i.tmp || break ; done
|
---|
127 | @grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0
|
---|
128 | $(CHECKER) ./tree1 test2.xml > tree1.tmp && diff tree1.tmp $(srcdir)/tree1.res
|
---|
129 | @grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0
|
---|
130 | $(CHECKER) ./tree2 > tree2.tmp && diff tree2.tmp $(srcdir)/tree2.res
|
---|
131 | @grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0
|
---|
132 | $(CHECKER) ./xpath1 test3.xml '//child2' > xpath1.tmp && diff xpath1.tmp $(srcdir)/xpath1.res
|
---|
133 | @grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0
|
---|
134 | $(CHECKER) ./xpath2 test3.xml '//discarded' discarded > xpath2.tmp && diff xpath2.tmp $(srcdir)/xpath2.res
|
---|
135 | @grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0
|
---|