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 | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 18 | xpath.py |
19 | |||||
20 | XMLS= \ | ||||
Daniel Veillard | 26f1dcc | 2002-02-03 16:53:19 +0000 | [diff] [blame] | 21 | tst.xml \ |
22 | valid.xml \ | ||||
23 | invalid.xml | ||||
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 24 | |
Daniel Veillard | 2a0cf74 | 2002-02-07 16:40:20 +0000 | [diff] [blame] | 25 | EXTRA_DIST = $(PYTESTS) $(XMLS) |
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 26 | |
27 | if WITH_PYTHON | ||||
Daniel Veillard | 2a0cf74 | 2002-02-07 16:40:20 +0000 | [diff] [blame] | 28 | tests: $(PYTESTS) |
Daniel Veillard | d237901 | 2002-03-15 22:24:56 +0000 | [diff] [blame] | 29 | -@(PYTHONPATH="..:../.libs" ; export PYTHONPATH; \ |
Daniel Veillard | 2a0cf74 | 2002-02-07 16:40:20 +0000 | [diff] [blame] | 30 | for test in $(PYTESTS) ; do echo "-- $$test" ; $(PYTHON) $$test ; done) |
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 31 | else |
32 | tests: | ||||
33 | endif | ||||
34 | |||||
Daniel Veillard | 3ce5257 | 2002-02-03 15:08:05 +0000 | [diff] [blame] | 35 | clean: |
36 | rm -f *.pyc core | ||||
37 | |||||
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 38 | install-data-local: |
39 | $(mkinstalldirs) $(DESTDIR)$(EXAMPLE_DIR) | ||||
Daniel Veillard | 2a0cf74 | 2002-02-07 16:40:20 +0000 | [diff] [blame] | 40 | -(for test in $(PYTESTS) $(XMLS); \ |
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 41 | do @INSTALL@ -m 0644 $$test $(DESTDIR)$(EXAMPLE_DIR) ; done) |
42 |