| # Beware this is autogenerated by config.py |
| HTML_DIR=$(datadir)/doc |
| DOC_MODULE=libxml2-$(VERSION) |
| TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE)/examples |
| |
| INCLUDES = -I$(top_builddir)/include -I@srcdir@/include @THREAD_CFLAGS@ @Z_CFLAGS@ |
| DEPS = $(top_builddir)/libxml2.la |
| LDADDS = @STATIC_BINARIES@ $(top_builddir)/libxml2.la @THREAD_LIBS@ @Z_LIBS@ $(ICONV_LIBS) -lm @WIN32_EXTRA_LIBADD@ |
| |
| all: examples.xml index.html |
| |
| examples.xml: index.py *.c |
| -@($(srcdir)/index.py) |
| |
| index.html: examples.xml examples.xsl |
| -@(xsltproc examples.xsl examples.xml && echo "Rebuilt web page" && xmllint --valid --noout index.html) |
| |
| install-data-local: |
| $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR) |
| -@INSTALL@ -m 0644 $(srcdir)/*.html $(srcdir)/*.c $(srcdir)/*.xml $(srcdir)/*.xsl $(srcdir)/*.out $(DESTDIR)$(TARGET_DIR) |
| |
| EXTRA_DIST=examples.xsl index.py test1.xml examples.xml test2.xml tree1.out |
| |
| noinst_PROGRAMS=xpath1 parse1 parse2 tree1 |
| |
| xpath1_SOURCES=xpath1.c |
| xpath1_LDFLAGS= |
| xpath1_DEPENDENCIES= $(DEPS) |
| xpath1_LDADD= @RDL_LIBS@ $(LDADDS) |
| |
| parse1_SOURCES=parse1.c |
| parse1_LDFLAGS= |
| parse1_DEPENDENCIES= $(DEPS) |
| parse1_LDADD= @RDL_LIBS@ $(LDADDS) |
| |
| parse2_SOURCES=parse2.c |
| parse2_LDFLAGS= |
| parse2_DEPENDENCIES= $(DEPS) |
| parse2_LDADD= @RDL_LIBS@ $(LDADDS) |
| |
| tree1_SOURCES=tree1.c |
| tree1_LDFLAGS= |
| tree1_DEPENDENCIES= $(DEPS) |
| tree1_LDADD= @RDL_LIBS@ $(LDADDS) |
| |
| tests: $(noinst_PROGRAMS) |
| parse1 test1.xml |
| parse2 test2.xml |
| tree1 test2.xml > tree1.tmp ; diff tree1.tmp tree1.out ; rm tree1.tmp |
| |
| |