Daniel Veillard | 5fc1f08 | 2002-03-27 09:05:40 +0000 | [diff] [blame] | 1 | EXAMPLE_DIR = $(datadir)/doc/libxml2-python-$(LIBXML_VERSION)/examples |
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 2 | |
Daniel Veillard | 7db3871 | 2002-02-07 16:39:11 +0000 | [diff] [blame] | 3 | PYTESTS= \ |
Daniel Veillard | 36eea2d | 2002-02-04 00:17:01 +0000 | [diff] [blame] | 4 | build.py \ |
Daniel Veillard | ef6c46f | 2002-03-07 22:21:56 +0000 | [diff] [blame] | 5 | attribs.py \ |
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 6 | tst.py \ |
7 | tstxpath.py \ | ||||
8 | xpathext.py \ | ||||
Daniel Veillard | 3ce5257 | 2002-02-03 15:08:05 +0000 | [diff] [blame] | 9 | push.py \ |
Daniel Veillard | 33caa0b | 2002-02-04 14:07:26 +0000 | [diff] [blame] | 10 | pushSAX.py \ |
Daniel Veillard | 3cd7240 | 2002-05-13 10:33:30 +0000 | [diff] [blame] | 11 | pushSAXhtml.py \ |
Daniel Veillard | 5d81903 | 2002-02-02 21:49:17 +0000 | [diff] [blame] | 12 | error.py \ |
Daniel Veillard | 4e0e297 | 2002-03-06 21:39:42 +0000 | [diff] [blame] | 13 | serialize.py\ |
Daniel Veillard | 26f1dcc | 2002-02-03 16:53:19 +0000 | [diff] [blame] | 14 | validate.py \ |
Daniel Veillard | 6361da0 | 2002-02-23 10:10:33 +0000 | [diff] [blame] | 15 | tstURI.py \ |
Daniel Veillard | f742d34 | 2002-03-07 00:05:35 +0000 | [diff] [blame] | 16 | cutnpaste.py\ |
Daniel Veillard | 79426f2 | 2002-03-01 16:14:17 +0000 | [diff] [blame] | 17 | xpathret.py \ |
Daniel Veillard | c6d4a93 | 2002-09-12 15:00:57 +0000 | [diff] [blame] | 18 | xpath.py \ |
19 | outbuf.py \ | ||||
20 | inbuf.py \ | ||||
Daniel Veillard | bd9afb5 | 2002-09-25 22:25:35 +0000 | [diff] [blame] | 21 | resolver.py \ |
Daniel Veillard | 0eb38c7 | 2002-12-14 23:00:35 +0000 | [diff] [blame] | 22 | regexp.py \ |
Daniel Veillard | 336fc7d | 2002-12-27 19:37:04 +0000 | [diff] [blame] | 23 | reader.py \ |
Daniel Veillard | e18fc18 | 2002-12-28 22:56:33 +0000 | [diff] [blame] | 24 | reader2.py \ |
Daniel Veillard | e6227e0 | 2003-01-14 11:42:39 +0000 | [diff] [blame] | 25 | reader3.py \ |
Daniel Veillard | ac29793 | 2003-04-17 12:55:35 +0000 | [diff] [blame] | 26 | reader4.py \ |
27 | reader5.py \ | ||||
28 | reader6.py \ | ||||
Daniel Veillard | 26f7026 | 2003-01-16 22:45:08 +0000 | [diff] [blame] | 29 | ctxterror.py\ |
Daniel Veillard | 591b4be | 2003-02-09 23:33:36 +0000 | [diff] [blame] | 30 | readererr.py\ |
Daniel Veillard | 781ac8b | 2003-05-15 22:11:36 +0000 | [diff] [blame^] | 31 | relaxng.py \ |
32 | thread2.py | ||||
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 33 | |
34 | XMLS= \ | ||||
Daniel Veillard | 26f1dcc | 2002-02-03 16:53:19 +0000 | [diff] [blame] | 35 | tst.xml \ |
36 | valid.xml \ | ||||
37 | invalid.xml | ||||
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 38 | |
Daniel Veillard | 2a0cf74 | 2002-02-07 16:40:20 +0000 | [diff] [blame] | 39 | EXTRA_DIST = $(PYTESTS) $(XMLS) |
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 40 | |
41 | if WITH_PYTHON | ||||
Daniel Veillard | 2a0cf74 | 2002-02-07 16:40:20 +0000 | [diff] [blame] | 42 | tests: $(PYTESTS) |
Daniel Veillard | 66651aa | 2002-11-15 11:21:43 +0000 | [diff] [blame] | 43 | -@(PYTHONPATH="..:../.libs:$(srcdir)/.." ; export PYTHONPATH; \ |
44 | for test in $(PYTESTS) ; do echo "-- $$test" ; $(PYTHON) $(srcdir)/$$test ; done) | ||||
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 45 | else |
46 | tests: | ||||
47 | endif | ||||
48 | |||||
Daniel Veillard | 3ce5257 | 2002-02-03 15:08:05 +0000 | [diff] [blame] | 49 | clean: |
50 | rm -f *.pyc core | ||||
51 | |||||
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 52 | install-data-local: |
53 | $(mkinstalldirs) $(DESTDIR)$(EXAMPLE_DIR) | ||||
Daniel Veillard | 2a0cf74 | 2002-02-07 16:40:20 +0000 | [diff] [blame] | 54 | -(for test in $(PYTESTS) $(XMLS); \ |
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 55 | do @INSTALL@ -m 0644 $$test $(DESTDIR)$(EXAMPLE_DIR) ; done) |
56 |