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