mirror of
https://gitlab.gnome.org/GNOME/libxml2
synced 2025-03-28 21:33:13 +00:00

* libxml.spec.in python/Makefile.am python/tests/Makefile.am python/generator.py python/libxml.c python/types.c: Cleanup of the python Makefiles based on Jacob and James feedback, fixed the spec file accordingly, fixed the number of warning that passing my pedantic CFLAGS was generating. Conclusion is that Python includes are real crap. Daniel
42 lines
777 B
Makefile
42 lines
777 B
Makefile
EXAMPLE_DIR = $(prefix)/share/doc/libxml2-python-$(LIBXML_VERSION)/examples
|
|
|
|
PYTESTS= \
|
|
build.py \
|
|
attribs.py \
|
|
tst.py \
|
|
tstxpath.py \
|
|
xpathext.py \
|
|
push.py \
|
|
pushSAX.py \
|
|
error.py \
|
|
serialize.py\
|
|
validate.py \
|
|
tstURI.py \
|
|
cutnpaste.py\
|
|
xpathret.py \
|
|
xpath.py
|
|
|
|
XMLS= \
|
|
tst.xml \
|
|
valid.xml \
|
|
invalid.xml
|
|
|
|
EXTRA_DIST = $(PYTESTS) $(XMLS)
|
|
|
|
if WITH_PYTHON
|
|
tests: $(PYTESTS)
|
|
-@(PYTHONPATH="..:../.libs" ; export PYTHONPATH; \
|
|
for test in $(PYTESTS) ; do echo "-- $$test" ; $(PYTHON) $$test ; done)
|
|
else
|
|
tests:
|
|
endif
|
|
|
|
clean:
|
|
rm -f *.pyc core
|
|
|
|
install-data-local:
|
|
$(mkinstalldirs) $(DESTDIR)$(EXAMPLE_DIR)
|
|
-(for test in $(PYTESTS) $(XMLS); \
|
|
do @INSTALL@ -m 0644 $$test $(DESTDIR)$(EXAMPLE_DIR) ; done)
|
|
|