# HG changeset patch # User David Seifert <soap@gentoo.org> # Date 1648902615 -7200 # Sat Apr 02 14:30:15 2022 +0200 # Node ID 125aa0960969916e81e7786013b8d32420f8ee01 # Parent 1ac2a6e6711eb366e23eba08174387f17a25084f python/Makefile.am: nest python docs in $(docdir) diff --git a/python/tests/Makefile.am b/python/tests/Makefile.am --- a/python/tests/Makefile.am +++ b/python/tests/Makefile.am @@ -1,23 +1,13 @@ -EXAMPLE_DIR = $(datadir)/doc/libxslt-python-$(LIBXSLT_VERSION)/examples - -TESTSPY= \ +if WITH_PYTHON +TESTSPY = \ basic.py \ exslt.py \ extelem.py \ extfunc.py -XMLS= \ - test.xml \ - test.xsl +exampledir = $(docdir)/python/examples +dist_example_DATA = test.xml test.xsl pyxsltproc.py $(TESTSPY) -EXTRAS= \ - pyxsltproc.py - -EXTRA_DIST = $(TESTSPY) $(XMLS) $(EXTRAS) - -CLEANFILES = *.pyc core - -if WITH_PYTHON tests: $(TESTSPY) @(PYTHONPATH="`pwd`/..:`pwd`/../.libs:$(srcdir)/.."; \ if test "x$(LIBXML_SRC)" != "x" ; then \ @@ -32,8 +22,4 @@ tests: endif -install-data-local: - $(MKDIR_P) $(DESTDIR)$(EXAMPLE_DIR) - -(for test in $(TESTSPY) $(XMLS) $(EXTRAS); \ - do $(INSTALL) -m 0644 $(srcdir)/$$test $(DESTDIR)$(EXAMPLE_DIR) ; done) - +CLEANFILES = *.pyc core