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 | 5d81903 | 2002-02-02 21:49:17 +0000 | [diff] [blame^] | 7 | error.py \ |
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 8 | xpath.py |
| 9 | |
| 10 | XMLS= \ |
| 11 | tst.xml |
| 12 | |
| 13 | EXTRA_DIST = $(TESTS) $(XMLS) |
| 14 | |
| 15 | if WITH_PYTHON |
| 16 | tests: $(TESTS) |
Daniel Veillard | 5d81903 | 2002-02-02 21:49:17 +0000 | [diff] [blame^] | 17 | -@(PYTHONPATH=".." ; export PYTHONPATH; \ |
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 18 | for test in $(TESTS) ; do echo "-- $$test" ; $(PYTHON) $$test ; done) |
| 19 | else |
| 20 | tests: |
| 21 | endif |
| 22 | |
| 23 | install-data-local: |
| 24 | $(mkinstalldirs) $(DESTDIR)$(EXAMPLE_DIR) |
| 25 | -(for test in $(TESTS) $(XMLS); \ |
| 26 | do @INSTALL@ -m 0644 $$test $(DESTDIR)$(EXAMPLE_DIR) ; done) |
| 27 | |