Annotation of embedaddon/libxml2/python/Makefile.am, revision 1.1

1.1     ! misho       1: # Makefile for libxml2 python library
        !             2: AUTOMAKE_OPTIONS = 1.4 foreign
        !             3: 
        !             4: SUBDIRS= . tests
        !             5: 
        !             6: INCLUDES = \
        !             7:        -I$(PYTHON_INCLUDES) \
        !             8:        -I$(top_srcdir)/include \
        !             9:        -I$(top_builddir)/include \
        !            10:        -I$(top_builddir)/$(subdir)
        !            11: 
        !            12: docsdir = $(datadir)/doc/libxml2-python-$(LIBXML_VERSION)
        !            13: # libxml2class.txt is generated
        !            14: dist_docs_DATA = TODO
        !            15: 
        !            16: EXTRA_DIST =                   \
        !            17:        setup.py                \
        !            18:        setup.py.in             \
        !            19:        generator.py            \
        !            20:        libxml_wrap.h           \
        !            21:        libxml.py               \
        !            22:        libxml2-python-api.xml
        !            23: 
        !            24: libxml2mod_la_LDFLAGS = @CYGWIN_EXTRA_LDFLAGS@ @WIN32_EXTRA_LDFLAGS@ -module -avoid-version 
        !            25: 
        !            26: if WITH_PYTHON
        !            27: mylibs = \
        !            28:        $(top_builddir)/libxml2.la
        !            29: 
        !            30: python_LTLIBRARIES = libxml2mod.la
        !            31: 
        !            32: libxml2mod_la_SOURCES = $(srcdir)/libxml.c $(srcdir)/types.c
        !            33: nodist_libxml2mod_la_SOURCES = libxml2-py.c
        !            34: libxml2mod_la_LIBADD = $(mylibs) @CYGWIN_EXTRA_PYTHON_LIBADD@ @WIN32_EXTRA_PYTHON_LIBADD@ @PYTHON_LIBS@
        !            35: 
        !            36: $(srcdir)/libxml.c: libxml2-py.h # to generate before to compile
        !            37: 
        !            38: 
        !            39: libxml2.py: $(srcdir)/libxml.py libxml2class.py
        !            40:        cat $(srcdir)/libxml.py libxml2class.py > $@
        !            41: 
        !            42: python_DATA = \
        !            43:        libxml2.py
        !            44: 
        !            45: dist_python_DATA = \
        !            46:        drv_libxml2.py
        !            47:        
        !            48: GENERATE = generator.py
        !            49: API_DESC = $(top_srcdir)/doc/libxml2-api.xml $(srcdir)/libxml2-python-api.xml
        !            50: GENERATED= libxml2class.py \
        !            51:            libxml2-export.c \
        !            52:            libxml2class.txt \
        !            53:           libxml2-py.c \
        !            54:           libxml2-py.h
        !            55: 
        !            56: CLEANFILES= $(GENERATED) gen_prog libxml2.py
        !            57: 
        !            58: $(GENERATED): gen_prog
        !            59: 
        !            60: gen_prog: $(srcdir)/$(GENERATE) $(API_DESC)
        !            61:        $(PYTHON) $(srcdir)/$(GENERATE) $(srcdir)
        !            62:        touch gen_prog
        !            63: endif
        !            64: 
        !            65: tests test: all
        !            66:        cd tests && $(MAKE) MAKEFLAGS+=--silent tests
        !            67: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>