1 # Makefile for libxml2 python library
2 AUTOMAKE_OPTIONS = 1.4 foreign
6 docsdir = $(datadir)/doc/libxml2-python-$(LIBXML_VERSION)
14 libxml2-python-api.xml \
20 -I$(top_builddir)/include \
21 -I$(top_srcdir)/include \
24 python_LTLIBRARIES = libxml2mod.la
26 libxml2mod_la_SOURCES = libxml.c libxml_wrap.h libxml2-py.h libxml2-py.c types.c
27 libxml2mod_la_LDFLAGS = $(CYGWIN_EXTRA_LDFLAGS) $(WIN32_EXTRA_LDFLAGS) -module -avoid-version \
28 $(top_builddir)/libxml2.la $(CYGWIN_EXTRA_PYTHON_LIBADD) $(WIN32_EXTRA_PYTHON_LIBADD) $(PYTHON_LIBS)
30 BUILT_SOURCES = libxml2-export.c libxml2-py.h libxml2-py.c
32 # libxml.c #includes libxml2-export.c
33 libxml.$(OBJEXT): libxml2-export.c
35 libxml2.py: $(srcdir)/libxml.py libxml2class.py
36 cat $(srcdir)/libxml.py `test -f libxml2class.py || echo $(srcdir)/`libxml2class.py > $@
44 MAINTAINERCLEANFILES = libxml2.py libxml2class.*
46 API_DESC = $(top_srcdir)/doc/libxml2-api.xml $(srcdir)/libxml2-python-api.xml
47 GENERATED = libxml2class.py libxml2class.txt $(BUILT_SOURCES)
49 $(GENERATED): $(srcdir)/generator.py $(API_DESC)
50 $(PYTHON) $(srcdir)/generator.py $(srcdir)
54 cd tests && $(MAKE) tests