blob: d4e91dd550c914577f28836b78e3105c4e01eb7d [file] [log] [blame]
Daniel Veillard5fc1f082002-03-27 09:05:40 +00001EXAMPLE_DIR = $(datadir)/doc/libxml2-python-$(LIBXML_VERSION)/examples
Daniel Veillard253aa2c2002-02-02 09:17:16 +00002
Daniel Veillard7db38712002-02-07 16:39:11 +00003PYTESTS= \
Daniel Veillard36eea2d2002-02-04 00:17:01 +00004 build.py \
Daniel Veillardef6c46f2002-03-07 22:21:56 +00005 attribs.py \
Daniel Veillard253aa2c2002-02-02 09:17:16 +00006 tst.py \
7 tstxpath.py \
8 xpathext.py \
Daniel Veillard3ce52572002-02-03 15:08:05 +00009 push.py \
Daniel Veillard33caa0b2002-02-04 14:07:26 +000010 pushSAX.py \
Daniel Veillard3cd72402002-05-13 10:33:30 +000011 pushSAXhtml.py \
Daniel Veillard5d819032002-02-02 21:49:17 +000012 error.py \
Daniel Veillard4e0e2972002-03-06 21:39:42 +000013 serialize.py\
Daniel Veillard26f1dcc2002-02-03 16:53:19 +000014 validate.py \
Daniel Veillard6361da02002-02-23 10:10:33 +000015 tstURI.py \
Daniel Veillardf742d342002-03-07 00:05:35 +000016 cutnpaste.py\
Daniel Veillard79426f22002-03-01 16:14:17 +000017 xpathret.py \
Daniel Veillardc6d4a932002-09-12 15:00:57 +000018 xpath.py \
19 outbuf.py \
20 inbuf.py \
Daniel Veillardbd9afb52002-09-25 22:25:35 +000021 resolver.py \
Daniel Veillard0eb38c72002-12-14 23:00:35 +000022 regexp.py \
Daniel Veillard336fc7d2002-12-27 19:37:04 +000023 reader.py \
Daniel Veillarde18fc182002-12-28 22:56:33 +000024 reader2.py \
Daniel Veillarde6227e02003-01-14 11:42:39 +000025 reader3.py \
Daniel Veillardac297932003-04-17 12:55:35 +000026 reader4.py \
27 reader5.py \
28 reader6.py \
Daniel Veillard26f70262003-01-16 22:45:08 +000029 ctxterror.py\
Daniel Veillard591b4be2003-02-09 23:33:36 +000030 readererr.py\
Daniel Veillard781ac8b2003-05-15 22:11:36 +000031 relaxng.py \
32 thread2.py
Daniel Veillard253aa2c2002-02-02 09:17:16 +000033
34XMLS= \
Daniel Veillard26f1dcc2002-02-03 16:53:19 +000035 tst.xml \
36 valid.xml \
37 invalid.xml
Daniel Veillard253aa2c2002-02-02 09:17:16 +000038
Daniel Veillard2a0cf742002-02-07 16:40:20 +000039EXTRA_DIST = $(PYTESTS) $(XMLS)
Daniel Veillard253aa2c2002-02-02 09:17:16 +000040
41if WITH_PYTHON
Daniel Veillard2a0cf742002-02-07 16:40:20 +000042tests: $(PYTESTS)
Daniel Veillard66651aa2002-11-15 11:21:43 +000043 -@(PYTHONPATH="..:../.libs:$(srcdir)/.." ; export PYTHONPATH; \
44 for test in $(PYTESTS) ; do echo "-- $$test" ; $(PYTHON) $(srcdir)/$$test ; done)
Daniel Veillard253aa2c2002-02-02 09:17:16 +000045else
46tests:
47endif
48
Daniel Veillard3ce52572002-02-03 15:08:05 +000049clean:
50 rm -f *.pyc core
51
Daniel Veillard253aa2c2002-02-02 09:17:16 +000052install-data-local:
53 $(mkinstalldirs) $(DESTDIR)$(EXAMPLE_DIR)
Daniel Veillard2a0cf742002-02-07 16:40:20 +000054 -(for test in $(PYTESTS) $(XMLS); \
Daniel Veillard253aa2c2002-02-02 09:17:16 +000055 do @INSTALL@ -m 0644 $$test $(DESTDIR)$(EXAMPLE_DIR) ; done)
56