Daniel Veillard | 8c03401 | 2003-11-12 16:54:26 +0000 | [diff] [blame] | 1 | # Beware this is autogenerated by config.py |
Daniel Veillard | 8d7b5c7 | 2003-11-15 18:24:36 +0000 | [diff] [blame] | 2 | HTML_DIR=$(datadir)/doc |
| 3 | DOC_MODULE=libxml2-$(VERSION) |
| 4 | TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE)/examples |
| 5 | |
Daniel Veillard | d8cf906 | 2003-11-11 21:12:36 +0000 | [diff] [blame] | 6 | INCLUDES = -I$(top_builddir)/include -I@srcdir@/include @THREAD_CFLAGS@ @Z_CFLAGS@ |
| 7 | DEPS = $(top_builddir)/libxml2.la |
| 8 | LDADDS = @STATIC_BINARIES@ $(top_builddir)/libxml2.la @THREAD_LIBS@ @Z_LIBS@ $(ICONV_LIBS) -lm @WIN32_EXTRA_LIBADD@ |
| 9 | |
Daniel Veillard | b72876d | 2003-11-12 00:40:33 +0000 | [diff] [blame] | 10 | all: examples.xml index.html |
Daniel Veillard | d8cf906 | 2003-11-11 21:12:36 +0000 | [diff] [blame] | 11 | |
| 12 | examples.xml: index.py *.c |
| 13 | -@($(srcdir)/index.py) |
Daniel Veillard | b72876d | 2003-11-12 00:40:33 +0000 | [diff] [blame] | 14 | |
| 15 | index.html: examples.xml examples.xsl |
| 16 | -@(xsltproc examples.xsl examples.xml && echo "Rebuilt web page" && xmllint --valid --noout index.html) |
Daniel Veillard | 8c03401 | 2003-11-12 16:54:26 +0000 | [diff] [blame] | 17 | |
Daniel Veillard | 8d7b5c7 | 2003-11-15 18:24:36 +0000 | [diff] [blame] | 18 | install-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 Veillard | c72f9fd | 2003-11-16 23:59:52 +0000 | [diff] [blame] | 22 | EXTRA_DIST=examples.xsl index.py test1.xml examples.xml test2.xml tree1.out |
Daniel Veillard | 8c03401 | 2003-11-12 16:54:26 +0000 | [diff] [blame] | 23 | |
Daniel Veillard | d9d63d6 | 2003-11-13 11:45:43 +0000 | [diff] [blame] | 24 | noinst_PROGRAMS=xpath1 parse1 parse2 tree1 |
Daniel Veillard | 241e19d | 2003-11-13 10:39:27 +0000 | [diff] [blame] | 25 | |
| 26 | xpath1_SOURCES=xpath1.c |
| 27 | xpath1_LDFLAGS= |
| 28 | xpath1_DEPENDENCIES= $(DEPS) |
| 29 | xpath1_LDADD= @RDL_LIBS@ $(LDADDS) |
Daniel Veillard | 8c03401 | 2003-11-12 16:54:26 +0000 | [diff] [blame] | 30 | |
| 31 | parse1_SOURCES=parse1.c |
| 32 | parse1_LDFLAGS= |
| 33 | parse1_DEPENDENCIES= $(DEPS) |
| 34 | parse1_LDADD= @RDL_LIBS@ $(LDADDS) |
| 35 | |
Daniel Veillard | a59853a | 2003-11-12 22:50:47 +0000 | [diff] [blame] | 36 | parse2_SOURCES=parse2.c |
| 37 | parse2_LDFLAGS= |
| 38 | parse2_DEPENDENCIES= $(DEPS) |
| 39 | parse2_LDADD= @RDL_LIBS@ $(LDADDS) |
| 40 | |
Daniel Veillard | d9d63d6 | 2003-11-13 11:45:43 +0000 | [diff] [blame] | 41 | tree1_SOURCES=tree1.c |
| 42 | tree1_LDFLAGS= |
| 43 | tree1_DEPENDENCIES= $(DEPS) |
| 44 | tree1_LDADD= @RDL_LIBS@ $(LDADDS) |
| 45 | |
Daniel Veillard | a59853a | 2003-11-12 22:50:47 +0000 | [diff] [blame] | 46 | tests: $(noinst_PROGRAMS) |
| 47 | parse1 test1.xml |
| 48 | parse2 test2.xml |
Daniel Veillard | d9d63d6 | 2003-11-13 11:45:43 +0000 | [diff] [blame] | 49 | tree1 test2.xml > tree1.tmp ; diff tree1.tmp tree1.out ; rm tree1.tmp |
Daniel Veillard | a59853a | 2003-11-12 22:50:47 +0000 | [diff] [blame] | 50 | |
| 51 | |