Blame doc/examples/Makefile.am

Packit 423ecb
##
Packit 423ecb
## This file is auto-generated by index.py
Packit 423ecb
## DO NOT EDIT !!!
Packit 423ecb
##
Packit 423ecb
Packit 423ecb
AM_CPPFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(srcdir)/include
Packit 423ecb
AM_CFLAGS = $(THREAD_CFLAGS) $(Z_CFLAGS)
Packit 423ecb
LDADD = $(RDL_LIBS) $(STATIC_BINARIES) $(top_builddir)/libxml2.la $(THREAD_LIBS) $(Z_LIBS) $(ICONV_LIBS) -lm $(WIN32_EXTRA_LIBADD)
Packit 423ecb
Packit 423ecb
CLEANFILES = *.tmp
Packit 423ecb
Packit 423ecb
if REBUILD_DOCS
Packit 423ecb
rebuild: examples.xml index.html
Packit 423ecb
.PHONY: rebuild
Packit 423ecb
Packit 423ecb
examples.xml: index.py $(check_PROGRAMS:=.c)
Packit 423ecb
	cd $(srcdir) && $(PYTHON) index.py
Packit 423ecb
	$(MAKE) Makefile
Packit 423ecb
Packit 423ecb
index.html: examples.xml examples.xsl
Packit 423ecb
	cd $(srcdir) && xsltproc examples.xsl examples.xml && echo "Rebuilt web page"
Packit 423ecb
	-cd $(srcdir) && xmllint --valid --noout index.html
Packit 423ecb
endif
Packit 423ecb
Packit 423ecb
install-data-local: 
Packit 423ecb
	$(MKDIR_P) $(DESTDIR)$(HTML_DIR)
Packit 423ecb
	-$(INSTALL) -m 0644 $(srcdir)/*.html $(srcdir)/*.c $(srcdir)/*.xml $(srcdir)/*.xsl $(srcdir)/*.res $(DESTDIR)$(HTML_DIR)
Packit 423ecb
Packit 423ecb
clean-local:
Packit 423ecb
	test -f Makefile.am || rm -f test?.xml
Packit 423ecb
Packit 423ecb
EXTRA_DIST = \
Packit 423ecb
	examples.xml \
Packit 423ecb
	examples.xsl \
Packit 423ecb
	index.html \
Packit 423ecb
	index.py \
Packit 423ecb
	io1.res \
Packit 423ecb
	io2.res \
Packit 423ecb
	reader1.res \
Packit 423ecb
	reader3.res \
Packit 423ecb
	reader4.res \
Packit 423ecb
	test1.xml \
Packit 423ecb
	test2.xml \
Packit 423ecb
	test3.xml \
Packit 423ecb
	tree1.res \
Packit 423ecb
	tree2.res \
Packit 423ecb
	tst.xml \
Packit 423ecb
	writer.xml \
Packit 423ecb
	xpath1.res \
Packit 423ecb
	xpath2.res
Packit 423ecb
Packit 423ecb
check_PROGRAMS = \
Packit 423ecb
	io1 \
Packit 423ecb
	io2 \
Packit 423ecb
	parse1 \
Packit 423ecb
	parse2 \
Packit 423ecb
	parse3 \
Packit 423ecb
	parse4 \
Packit 423ecb
	reader1 \
Packit 423ecb
	reader2 \
Packit 423ecb
	reader3 \
Packit 423ecb
	reader4 \
Packit 423ecb
	testWriter \
Packit 423ecb
	tree1 \
Packit 423ecb
	tree2 \
Packit 423ecb
	xpath1 \
Packit 423ecb
	xpath2
Packit 423ecb
Packit 423ecb
io1_SOURCES = io1.c
Packit 423ecb
Packit 423ecb
io2_SOURCES = io2.c
Packit 423ecb
Packit 423ecb
parse1_SOURCES = parse1.c
Packit 423ecb
Packit 423ecb
parse2_SOURCES = parse2.c
Packit 423ecb
Packit 423ecb
parse3_SOURCES = parse3.c
Packit 423ecb
Packit 423ecb
parse4_SOURCES = parse4.c
Packit 423ecb
Packit 423ecb
reader1_SOURCES = reader1.c
Packit 423ecb
Packit 423ecb
reader2_SOURCES = reader2.c
Packit 423ecb
Packit 423ecb
reader3_SOURCES = reader3.c
Packit 423ecb
Packit 423ecb
reader4_SOURCES = reader4.c
Packit 423ecb
Packit 423ecb
testWriter_SOURCES = testWriter.c
Packit 423ecb
Packit 423ecb
tree1_SOURCES = tree1.c
Packit 423ecb
Packit 423ecb
tree2_SOURCES = tree2.c
Packit 423ecb
Packit 423ecb
xpath1_SOURCES = xpath1.c
Packit 423ecb
Packit 423ecb
xpath2_SOURCES = xpath2.c
Packit 423ecb
Packit 423ecb
valgrind: 
Packit 423ecb
	$(MAKE) CHECKER='valgrind' tests
Packit 423ecb
Packit 423ecb
tests: $(check_PROGRAMS)
Packit 423ecb
	@test -f Makefile.am || test -f test1.xml || $(LN_S) $(srcdir)/test?.xml .
Packit 423ecb
	@(echo '## examples regression tests')
Packit 423ecb
	@(echo > .memdump)
Packit 423ecb
	@$(CHECKER) ./io1 > io1.tmp && diff io1.tmp $(srcdir)/io1.res
Packit 423ecb
	@grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0
Packit 423ecb
	@$(CHECKER) ./io2 > io2.tmp && diff io2.tmp $(srcdir)/io2.res
Packit 423ecb
	@grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0
Packit 423ecb
	@$(CHECKER) ./parse1 test1.xml
Packit 423ecb
	@grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0
Packit 423ecb
	@$(CHECKER) ./parse2 test2.xml
Packit 423ecb
	@grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0
Packit 423ecb
	@$(CHECKER) ./parse3
Packit 423ecb
	@grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0
Packit 423ecb
	@$(CHECKER) ./parse4 test3.xml
Packit 423ecb
	@grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0
Packit 423ecb
	@$(CHECKER) ./reader1 test2.xml > reader1.tmp && diff reader1.tmp $(srcdir)/reader1.res
Packit 423ecb
	@grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0
Packit 423ecb
	@$(CHECKER) ./reader2 test2.xml > reader1.tmp && diff reader1.tmp $(srcdir)/reader1.res
Packit 423ecb
	@grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0
Packit 423ecb
	@$(CHECKER) ./reader3 > reader3.tmp && diff reader3.tmp $(srcdir)/reader3.res
Packit 423ecb
	@grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0
Packit 423ecb
	@$(CHECKER) ./reader4 test1.xml test2.xml test3.xml > reader4.tmp && diff reader4.tmp $(srcdir)/reader4.res
Packit 423ecb
	@grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0
Packit 423ecb
	@$(CHECKER) ./testWriter && for i in 1 2 3 4 ; do diff $(srcdir)/writer.xml writer$$i.tmp || break ; done
Packit 423ecb
	@grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0
Packit 423ecb
	@$(CHECKER) ./tree1 test2.xml > tree1.tmp && diff tree1.tmp $(srcdir)/tree1.res
Packit 423ecb
	@grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0
Packit 423ecb
	@$(CHECKER) ./tree2 > tree2.tmp && diff tree2.tmp $(srcdir)/tree2.res
Packit 423ecb
	@grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0
Packit 423ecb
	@$(CHECKER) ./xpath1 test3.xml '//child2' > xpath1.tmp && diff xpath1.tmp $(srcdir)/xpath1.res
Packit 423ecb
	@grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0
Packit 423ecb
	@$(CHECKER) ./xpath2 test3.xml '//discarded' discarded > xpath2.tmp && diff xpath2.tmp $(srcdir)/xpath2.res
Packit 423ecb
	@grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0
Packit 423ecb
	@rm *.tmp