Makefile.am revision f2497c16b223b8be56d0496fc0bce84ed2ce3b6e
1# Beware this is autogenerated by index.py 2HTML_DIR=$(datadir)/doc 3DOC_MODULE=libxml2-$(VERSION) 4TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE)/examples 5 6INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I@srcdir@/include @THREAD_CFLAGS@ @Z_CFLAGS@ 7DEPS = $(top_builddir)/libxml2.la 8LDADDS = @STATIC_BINARIES@ $(top_builddir)/libxml2.la @THREAD_LIBS@ @Z_LIBS@ $(ICONV_LIBS) -lm @WIN32_EXTRA_LIBADD@ 9 10rebuild: examples.xml index.html 11 12examples.xml: index.py *.c 13 -@($(srcdir)/index.py) 14 15index.html: examples.xml examples.xsl 16 -@(xsltproc examples.xsl examples.xml && echo "Rebuilt web page" && xmllint --valid --noout index.html) 17 18install-data-local: 19 $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR) 20 -@INSTALL@ -m 0644 $(srcdir)/*.html $(srcdir)/*.c $(srcdir)/*.xml $(srcdir)/*.xsl $(srcdir)/*.res $(DESTDIR)$(TARGET_DIR) 21 22EXTRA_DIST=examples.xsl index.py test1.xml test2.xml test3.xml writer.xml examples.xml io1.res reader1.res reader3.res tree1.res tree2.res 23 24noinst_PROGRAMS=io1 parse1 parse2 reader1 reader2 reader3 testWriter tree1 tree2 xpath1 25 26io1_SOURCES=io1.c 27io1_LDFLAGS= 28io1_DEPENDENCIES= $(DEPS) 29io1_LDADD= @RDL_LIBS@ $(LDADDS) 30 31parse1_SOURCES=parse1.c 32parse1_LDFLAGS= 33parse1_DEPENDENCIES= $(DEPS) 34parse1_LDADD= @RDL_LIBS@ $(LDADDS) 35 36parse2_SOURCES=parse2.c 37parse2_LDFLAGS= 38parse2_DEPENDENCIES= $(DEPS) 39parse2_LDADD= @RDL_LIBS@ $(LDADDS) 40 41reader1_SOURCES=reader1.c 42reader1_LDFLAGS= 43reader1_DEPENDENCIES= $(DEPS) 44reader1_LDADD= @RDL_LIBS@ $(LDADDS) 45 46reader2_SOURCES=reader2.c 47reader2_LDFLAGS= 48reader2_DEPENDENCIES= $(DEPS) 49reader2_LDADD= @RDL_LIBS@ $(LDADDS) 50 51reader3_SOURCES=reader3.c 52reader3_LDFLAGS= 53reader3_DEPENDENCIES= $(DEPS) 54reader3_LDADD= @RDL_LIBS@ $(LDADDS) 55 56testWriter_SOURCES=testWriter.c 57testWriter_LDFLAGS= 58testWriter_DEPENDENCIES= $(DEPS) 59testWriter_LDADD= @RDL_LIBS@ $(LDADDS) 60 61tree1_SOURCES=tree1.c 62tree1_LDFLAGS= 63tree1_DEPENDENCIES= $(DEPS) 64tree1_LDADD= @RDL_LIBS@ $(LDADDS) 65 66tree2_SOURCES=tree2.c 67tree2_LDFLAGS= 68tree2_DEPENDENCIES= $(DEPS) 69tree2_LDADD= @RDL_LIBS@ $(LDADDS) 70 71xpath1_SOURCES=xpath1.c 72xpath1_LDFLAGS= 73xpath1_DEPENDENCIES= $(DEPS) 74xpath1_LDADD= @RDL_LIBS@ $(LDADDS) 75 76tests: $(noinst_PROGRAMS) 77 @(echo > .memdump) 78 @(./io1 > io1.tmp ; diff io1.tmp io1.res ; rm -f io1.tmp) 79 @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0) 80 @(./parse1 test1.xml) 81 @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0) 82 @(./parse2 test2.xml) 83 @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0) 84 @(./reader1 test2.xml > reader1.tmp ; diff reader1.tmp reader1.res ; rm reader1.tmp) 85 @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0) 86 @(./reader2 test2.xml > reader1.tmp ; diff reader1.tmp reader1.res ; rm reader1.tmp) 87 @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0) 88 @(./reader3 > reader3.tmp ; diff reader3.tmp reader3.res ; rm reader3.tmp) 89 @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0) 90 @(./testWriter ; for i in 1 2 3 4 ; do diff writer.xml writer$$i.res ; done ; rm writer*.res) 91 @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0) 92 @(./tree1 test2.xml > tree1.tmp ; diff tree1.tmp tree1.res ; rm tree1.tmp) 93 @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0) 94 @(./tree2 > tree2.tmp ; diff tree2.tmp tree2.res ; rm tree2.tmp) 95 @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0) 96 97 98