mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-12-03 16:31:12 +03:00
* configure.in python/Makefile.am python/tests/Makefile.am: applied patch from Roumen Petrov for bug #124539 when building outside the source directory * libxslt/xsltutils.c: fixed the way to grab the line number from the document, use the predefiend libxml2 API which mate it work with both 2.5.x and 2.6.x Daniel
36 lines
819 B
Makefile
36 lines
819 B
Makefile
EXAMPLE_DIR = $(datadir)/doc/libxslt-python-$(LIBXSLT_VERSION)/examples
|
|
|
|
TESTSPY= \
|
|
basic.py \
|
|
exslt.py \
|
|
extelem.py \
|
|
extfunc.py
|
|
|
|
XMLS= \
|
|
test.xml \
|
|
test.xsl
|
|
|
|
EXTRAS= \
|
|
pyxsltproc.py
|
|
|
|
EXTRA_DIST = $(TESTSPY) $(XMLS) $(EXTRAS)
|
|
|
|
if WITH_PYTHON
|
|
tests: $(TESTSPY)
|
|
-@(PYTHONPATH="`pwd`/..:`pwd`/../.libs:$(srcdir)/.."; \
|
|
if test "x$(LIBXML_SRC)" != "x" ; then PYTHONPATH="$$PYTHONPATH:$(LIBXML_SRC)/python:$(LIBXML_SRC)/python/.libs"; fi; \
|
|
export PYTHONPATH; \
|
|
for test in $(TESTSPY) ; do echo "-- $$test" ; (cd $(srcdir) && $(PYTHON) $$test ); done)
|
|
else
|
|
tests:
|
|
endif
|
|
|
|
clean:
|
|
rm -f *.pyc core
|
|
|
|
install-data-local:
|
|
$(mkinstalldirs) $(DESTDIR)$(EXAMPLE_DIR)
|
|
-(for test in $(TESTSPY) $(XMLS) $(EXTRAS); \
|
|
do @INSTALL@ -m 0644 $(srcdir)/$$test $(DESTDIR)$(EXAMPLE_DIR) ; done)
|
|
|