Makefile.am revision 1e90661bb817402f85103c3b9d3ce6ebab570f38
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@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)/*.out $(DESTDIR)$(TARGET_DIR) 21 22EXTRA_DIST=examples.xsl index.py test1.xml examples.xml test2.xml writer.xml test3.xml tree1.out tree2.out reader1.out reader3.out 23 24noinst_PROGRAMS=xpath1 parse1 parse2 tree1 tree2 testWriter reader1 reader2 reader3 25 26xpath1_SOURCES=xpath1.c 27xpath1_LDFLAGS= 28xpath1_DEPENDENCIES= $(DEPS) 29xpath1_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 41tree1_SOURCES=tree1.c 42tree1_LDFLAGS= 43tree1_DEPENDENCIES= $(DEPS) 44tree1_LDADD= @RDL_LIBS@ $(LDADDS) 45 46tree2_SOURCES=tree2.c 47tree2_LDFLAGS= 48tree2_DEPENDENCIES= $(DEPS) 49tree2_LDADD= @RDL_LIBS@ $(LDADDS) 50 51testWriter_SOURCES=testWriter.c 52testWriter_LDFLAGS= 53testWriter_DEPENDENCIES= $(DEPS) 54testWriter_LDADD= @RDL_LIBS@ $(LDADDS) 55 56reader1_SOURCES=reader1.c 57reader1_LDFLAGS= 58reader1_DEPENDENCIES= $(DEPS) 59reader1_LDADD= @RDL_LIBS@ $(LDADDS) 60 61reader2_SOURCES=reader2.c 62reader2_LDFLAGS= 63reader2_DEPENDENCIES= $(DEPS) 64reader2_LDADD= @RDL_LIBS@ $(LDADDS) 65 66reader3_SOURCES=reader3.c 67reader3_LDFLAGS= 68reader3_DEPENDENCIES= $(DEPS) 69reader3_LDADD= @RDL_LIBS@ $(LDADDS) 70 71tests: $(noinst_PROGRAMS) 72 @(parse1 test1.xml) 73 @(parse2 test2.xml) 74 @(tree1 test2.xml > tree1.tmp ; diff tree1.tmp tree1.out ; rm tree1.tmp) 75 @(tree2 > tree2.tmp ; diff tree2.tmp tree2.out ; rm tree2.tmp) 76 @(testWriter ; for i in 1 2 3 4 ; do diff writer.xml writer$$i.out ; done ; rm writer*.out) 77 @(reader1 test2.xml > reader1.tmp ; diff reader1.tmp reader1.out ; rm reader1.tmp) 78 @(reader2 test2.xml > reader1.tmp ; diff reader1.tmp reader1.out ; rm reader1.tmp) 79 @(reader3 > reader3.tmp ; diff reader3.tmp reader3.out ; rm reader3.tmp) 80 81 82