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