blob: d5e233138513cdd84d4ebf0e95efe04b98c874d5 [file] [log] [blame]
Daniel Veillard8c034012003-11-12 16:54:26 +00001# Beware this is autogenerated by config.py
Daniel Veillard8d7b5c72003-11-15 18:24:36 +00002HTML_DIR=$(datadir)/doc
3DOC_MODULE=libxml2-$(VERSION)
4TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE)/examples
5
Daniel Veillardd8cf9062003-11-11 21:12:36 +00006INCLUDES = -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
Daniel Veillardb72876d2003-11-12 00:40:33 +000010all: examples.xml index.html
Daniel Veillardd8cf9062003-11-11 21:12:36 +000011
12examples.xml: index.py *.c
13 -@($(srcdir)/index.py)
Daniel Veillardb72876d2003-11-12 00:40:33 +000014
15index.html: examples.xml examples.xsl
16 -@(xsltproc examples.xsl examples.xml && echo "Rebuilt web page" && xmllint --valid --noout index.html)
Daniel Veillard8c034012003-11-12 16:54:26 +000017
Daniel Veillard8d7b5c72003-11-15 18:24:36 +000018install-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
Daniel Veillarda152c4d2003-11-19 16:24:26 +000022EXTRA_DIST=examples.xsl index.py test1.xml examples.xml test2.xml tree1.out tree2.out
Daniel Veillard8c034012003-11-12 16:54:26 +000023
Daniel Veillarda152c4d2003-11-19 16:24:26 +000024noinst_PROGRAMS=xpath1 parse1 parse2 tree1 tree2
Daniel Veillard241e19d2003-11-13 10:39:27 +000025
26xpath1_SOURCES=xpath1.c
27xpath1_LDFLAGS=
28xpath1_DEPENDENCIES= $(DEPS)
29xpath1_LDADD= @RDL_LIBS@ $(LDADDS)
Daniel Veillard8c034012003-11-12 16:54:26 +000030
31parse1_SOURCES=parse1.c
32parse1_LDFLAGS=
33parse1_DEPENDENCIES= $(DEPS)
34parse1_LDADD= @RDL_LIBS@ $(LDADDS)
35
Daniel Veillarda59853a2003-11-12 22:50:47 +000036parse2_SOURCES=parse2.c
37parse2_LDFLAGS=
38parse2_DEPENDENCIES= $(DEPS)
39parse2_LDADD= @RDL_LIBS@ $(LDADDS)
40
Daniel Veillardd9d63d62003-11-13 11:45:43 +000041tree1_SOURCES=tree1.c
42tree1_LDFLAGS=
43tree1_DEPENDENCIES= $(DEPS)
44tree1_LDADD= @RDL_LIBS@ $(LDADDS)
45
Daniel Veillarda152c4d2003-11-19 16:24:26 +000046tree2_SOURCES=tree2.c
47tree2_LDFLAGS=
48tree2_DEPENDENCIES= $(DEPS)
49tree2_LDADD= @RDL_LIBS@ $(LDADDS)
50
Daniel Veillarda59853a2003-11-12 22:50:47 +000051tests: $(noinst_PROGRAMS)
52 parse1 test1.xml
53 parse2 test2.xml
Daniel Veillardd9d63d62003-11-13 11:45:43 +000054 tree1 test2.xml > tree1.tmp ; diff tree1.tmp tree1.out ; rm tree1.tmp
Daniel Veillarda152c4d2003-11-19 16:24:26 +000055 tree2 > tree2.tmp ; diff tree2.tmp tree2.out ; rm tree2.tmp
Daniel Veillarda59853a2003-11-12 22:50:47 +000056
57