Annotation of embedaddon/libxml2/doc/examples/Makefile.am, revision 1.1.1.1
1.1 misho 1: # Beware this is autogenerated by index.py
2: INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I@srcdir@/include @THREAD_CFLAGS@ @Z_CFLAGS@
3: DEPS = $(top_builddir)/libxml2.la
4: LDADDS = @STATIC_BINARIES@ $(top_builddir)/libxml2.la @THREAD_LIBS@ @Z_LIBS@ $(ICONV_LIBS) -lm @WIN32_EXTRA_LIBADD@
5:
6: rebuild: examples.xml index.html
7:
8: examples.xml: index.py *.c
9: -@($(srcdir)/index.py)
10:
11: index.html: examples.xml examples.xsl
12: -@(xsltproc examples.xsl examples.xml && echo "Rebuilt web page" && xmllint --valid --noout index.html)
13:
14: install-data-local:
15: @MKDIR_P@ $(DESTDIR)$(HTML_DIR)
16: -@INSTALL@ -m 0644 $(srcdir)/*.html $(srcdir)/*.c $(srcdir)/*.xml $(srcdir)/*.xsl $(srcdir)/*.res $(DESTDIR)$(HTML_DIR)
17:
18: EXTRA_DIST=examples.xsl index.py examples.xml writer.xml test3.xml tst.xml test1.xml test2.xml io2.res xpath2.res tree1.res reader4.res io1.res tree2.res reader3.res xpath1.res reader1.res
19:
20: noinst_PROGRAMS=xpath2 reader1 reader4 parse2 reader2 parse3 reader3 tree2 parse4 io2 testWriter io1 xpath1 parse1 tree1
21:
22: xpath2_SOURCES=xpath2.c
23: xpath2_LDFLAGS=
24: xpath2_DEPENDENCIES= $(DEPS)
25: xpath2_LDADD= @RDL_LIBS@ $(LDADDS)
26:
27: reader1_SOURCES=reader1.c
28: reader1_LDFLAGS=
29: reader1_DEPENDENCIES= $(DEPS)
30: reader1_LDADD= @RDL_LIBS@ $(LDADDS)
31:
32: reader4_SOURCES=reader4.c
33: reader4_LDFLAGS=
34: reader4_DEPENDENCIES= $(DEPS)
35: reader4_LDADD= @RDL_LIBS@ $(LDADDS)
36:
37: parse2_SOURCES=parse2.c
38: parse2_LDFLAGS=
39: parse2_DEPENDENCIES= $(DEPS)
40: parse2_LDADD= @RDL_LIBS@ $(LDADDS)
41:
42: reader2_SOURCES=reader2.c
43: reader2_LDFLAGS=
44: reader2_DEPENDENCIES= $(DEPS)
45: reader2_LDADD= @RDL_LIBS@ $(LDADDS)
46:
47: parse3_SOURCES=parse3.c
48: parse3_LDFLAGS=
49: parse3_DEPENDENCIES= $(DEPS)
50: parse3_LDADD= @RDL_LIBS@ $(LDADDS)
51:
52: reader3_SOURCES=reader3.c
53: reader3_LDFLAGS=
54: reader3_DEPENDENCIES= $(DEPS)
55: reader3_LDADD= @RDL_LIBS@ $(LDADDS)
56:
57: tree2_SOURCES=tree2.c
58: tree2_LDFLAGS=
59: tree2_DEPENDENCIES= $(DEPS)
60: tree2_LDADD= @RDL_LIBS@ $(LDADDS)
61:
62: parse4_SOURCES=parse4.c
63: parse4_LDFLAGS=
64: parse4_DEPENDENCIES= $(DEPS)
65: parse4_LDADD= @RDL_LIBS@ $(LDADDS)
66:
67: io2_SOURCES=io2.c
68: io2_LDFLAGS=
69: io2_DEPENDENCIES= $(DEPS)
70: io2_LDADD= @RDL_LIBS@ $(LDADDS)
71:
72: testWriter_SOURCES=testWriter.c
73: testWriter_LDFLAGS=
74: testWriter_DEPENDENCIES= $(DEPS)
75: testWriter_LDADD= @RDL_LIBS@ $(LDADDS)
76:
77: io1_SOURCES=io1.c
78: io1_LDFLAGS=
79: io1_DEPENDENCIES= $(DEPS)
80: io1_LDADD= @RDL_LIBS@ $(LDADDS)
81:
82: xpath1_SOURCES=xpath1.c
83: xpath1_LDFLAGS=
84: xpath1_DEPENDENCIES= $(DEPS)
85: xpath1_LDADD= @RDL_LIBS@ $(LDADDS)
86:
87: parse1_SOURCES=parse1.c
88: parse1_LDFLAGS=
89: parse1_DEPENDENCIES= $(DEPS)
90: parse1_LDADD= @RDL_LIBS@ $(LDADDS)
91:
92: tree1_SOURCES=tree1.c
93: tree1_LDFLAGS=
94: tree1_DEPENDENCIES= $(DEPS)
95: tree1_LDADD= @RDL_LIBS@ $(LDADDS)
96:
97: valgrind:
98: $(MAKE) CHECKER='valgrind' tests
99:
100: tests: $(noinst_PROGRAMS)
101: @(echo '## examples regression tests')
102: @(echo > .memdump)
103: @($(CHECKER) ./xpath2 test3.xml '//discarded' discarded > xpath2.tmp ; diff xpath2.tmp xpath2.res ; rm xpath2.tmp)
104: @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0)
105: @($(CHECKER) ./reader1 test2.xml > reader1.tmp ; diff reader1.tmp reader1.res ; rm reader1.tmp)
106: @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0)
107: @($(CHECKER) ./reader4 test1.xml test2.xml test3.xml > reader4.tmp ; diff reader4.tmp reader4.res ; rm reader4.tmp)
108: @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0)
109: @($(CHECKER) ./parse2 test2.xml)
110: @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0)
111: @($(CHECKER) ./reader2 test2.xml > reader1.tmp ; diff reader1.tmp reader1.res ; rm reader1.tmp)
112: @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0)
113: @($(CHECKER) ./parse3)
114: @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0)
115: @($(CHECKER) ./reader3 > reader3.tmp ; diff reader3.tmp reader3.res ; rm reader3.tmp)
116: @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0)
117: @($(CHECKER) ./tree2 > tree2.tmp ; diff tree2.tmp tree2.res ; rm tree2.tmp)
118: @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0)
119: @($(CHECKER) ./parse4 test3.xml)
120: @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0)
121: @($(CHECKER) ./io2 > io2.tmp ; diff io2.tmp io2.res ; rm -f io2.tmp)
122: @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0)
123: @($(CHECKER) ./testWriter ; for i in 1 2 3 4 ; do diff writer.xml writer$$i.res ; done ; rm writer*.res)
124: @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0)
125: @($(CHECKER) ./io1 > io1.tmp ; diff io1.tmp io1.res ; rm -f io1.tmp)
126: @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0)
127: @($(CHECKER) ././xpath1 test3.xml '//child2' > xpath1.tmp ; diff xpath1.tmp xpath1.res ; rm xpath1.tmp)
128: @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0)
129: @($(CHECKER) ./parse1 test1.xml)
130: @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0)
131: @($(CHECKER) ./tree1 test2.xml > tree1.tmp ; diff tree1.tmp tree1.res ; rm tree1.tmp)
132: @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0)
133:
134:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>