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 \ |
| 7 | xpath.py |
| 8 | |
| 9 | XMLS= \ |
| 10 | tst.xml |
| 11 | |
| 12 | EXTRA_DIST = $(TESTS) $(XMLS) |
| 13 | |
| 14 | if WITH_PYTHON |
| 15 | tests: $(TESTS) |
| 16 | -@(CLASSPATH=".." ; export CLASSPATH; \ |
| 17 | for test in $(TESTS) ; do echo "-- $$test" ; $(PYTHON) $$test ; done) |
| 18 | else |
| 19 | tests: |
| 20 | endif |
| 21 | |
| 22 | install-data-local: |
| 23 | $(mkinstalldirs) $(DESTDIR)$(EXAMPLE_DIR) |
| 24 | -(for test in $(TESTS) $(XMLS); \ |
| 25 | do @INSTALL@ -m 0644 $$test $(DESTDIR)$(EXAMPLE_DIR) ; done) |
| 26 | |