Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 1 | EXAMPLE_DIR = $(prefix)/share/doc/libxml2-python-$(LIBXML_VERSION)/examples |
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 | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 5 | tst.py \ |
6 | tstxpath.py \ | ||||
7 | xpathext.py \ | ||||
Daniel Veillard | 3ce5257 | 2002-02-03 15:08:05 +0000 | [diff] [blame] | 8 | push.py \ |
Daniel Veillard | 33caa0b | 2002-02-04 14:07:26 +0000 | [diff] [blame] | 9 | pushSAX.py \ |
Daniel Veillard | 5d81903 | 2002-02-02 21:49:17 +0000 | [diff] [blame] | 10 | error.py \ |
Daniel Veillard | 26f1dcc | 2002-02-03 16:53:19 +0000 | [diff] [blame] | 11 | validate.py \ |
Daniel Veillard | 6361da0 | 2002-02-23 10:10:33 +0000 | [diff] [blame^] | 12 | tstURI.py \ |
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 13 | xpath.py |
14 | |||||
15 | XMLS= \ | ||||
Daniel Veillard | 26f1dcc | 2002-02-03 16:53:19 +0000 | [diff] [blame] | 16 | tst.xml \ |
17 | valid.xml \ | ||||
18 | invalid.xml | ||||
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 19 | |
Daniel Veillard | 2a0cf74 | 2002-02-07 16:40:20 +0000 | [diff] [blame] | 20 | EXTRA_DIST = $(PYTESTS) $(XMLS) |
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 21 | |
22 | if WITH_PYTHON | ||||
Daniel Veillard | 2a0cf74 | 2002-02-07 16:40:20 +0000 | [diff] [blame] | 23 | tests: $(PYTESTS) |
Daniel Veillard | 5d81903 | 2002-02-02 21:49:17 +0000 | [diff] [blame] | 24 | -@(PYTHONPATH=".." ; export PYTHONPATH; \ |
Daniel Veillard | 2a0cf74 | 2002-02-07 16:40:20 +0000 | [diff] [blame] | 25 | for test in $(PYTESTS) ; do echo "-- $$test" ; $(PYTHON) $$test ; done) |
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 26 | else |
27 | tests: | ||||
28 | endif | ||||
29 | |||||
Daniel Veillard | 3ce5257 | 2002-02-03 15:08:05 +0000 | [diff] [blame] | 30 | clean: |
31 | rm -f *.pyc core | ||||
32 | |||||
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 33 | install-data-local: |
34 | $(mkinstalldirs) $(DESTDIR)$(EXAMPLE_DIR) | ||||
Daniel Veillard | 2a0cf74 | 2002-02-07 16:40:20 +0000 | [diff] [blame] | 35 | -(for test in $(PYTESTS) $(XMLS); \ |
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 36 | do @INSTALL@ -m 0644 $$test $(DESTDIR)$(EXAMPLE_DIR) ; done) |
37 |