blob: 24e37e5eae4de15428a9114cb0c11fcbdfcc2ca0 [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 Veillardc72f9fd2003-11-16 23:59:52 +000022EXTRA_DIST=examples.xsl index.py test1.xml examples.xml test2.xml tree1.out
Daniel Veillard8c034012003-11-12 16:54:26 +000023
Daniel Veillardd9d63d62003-11-13 11:45:43 +000024noinst_PROGRAMS=xpath1 parse1 parse2 tree1
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 Veillarda59853a2003-11-12 22:50:47 +000046tests: $(noinst_PROGRAMS)
47 parse1 test1.xml
48 parse2 test2.xml
Daniel Veillardd9d63d62003-11-13 11:45:43 +000049 tree1 test2.xml > tree1.tmp ; diff tree1.tmp tree1.out ; rm tree1.tmp
Daniel Veillarda59853a2003-11-12 22:50:47 +000050
51