mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
Remove generated files from distribution
- libxml2.spec - libxml-2.0.pc - xml2-config - include/libxml/xmlversion.h - python/libxml2.py - python/libxml2-export.c - python/libxml2-py.c - python/libxml2-py.h - python/libxml2class.py - python/libxml2class.txt - python/setup.py
This commit is contained in:
@@ -6,13 +6,9 @@ docsdir = $(docdir)/python
|
||||
dist_docs_DATA = TODO
|
||||
|
||||
EXTRA_DIST = \
|
||||
setup.py \
|
||||
generator.py \
|
||||
libxml.py \
|
||||
libxml2-export.c \
|
||||
libxml2-python-api.xml \
|
||||
libxml2class.py \
|
||||
libxml2class.txt
|
||||
libxml2-python-api.xml
|
||||
|
||||
if WITH_PYTHON
|
||||
AM_CPPFLAGS = \
|
||||
@@ -22,32 +18,32 @@ AM_CPPFLAGS = \
|
||||
|
||||
pyexec_LTLIBRARIES = libxml2mod.la
|
||||
|
||||
libxml2mod_la_SOURCES = libxml.c libxml_wrap.h libxml2-py.h libxml2-py.c types.c
|
||||
libxml2mod_la_SOURCES = libxml.c libxml_wrap.h types.c
|
||||
nodist_libxml2mod_la_SOURCES = libxml2-py.h libxml2-py.c
|
||||
libxml2mod_la_LDFLAGS = $(CYGWIN_EXTRA_LDFLAGS) $(WIN32_EXTRA_LDFLAGS) -module -avoid-version
|
||||
libxml2mod_la_LIBADD = $(top_builddir)/libxml2.la $(CYGWIN_EXTRA_PYTHON_LIBADD) $(WIN32_EXTRA_PYTHON_LIBADD) $(PYTHON_LIBS)
|
||||
|
||||
BUILT_SOURCES = libxml2-export.c libxml2-py.h libxml2-py.c
|
||||
|
||||
python_PYTHON = drv_libxml2.py
|
||||
nodist_python_PYTHON = libxml2.py
|
||||
|
||||
API_DESC = $(top_srcdir)/doc/libxml2-api.xml $(srcdir)/libxml2-python-api.xml
|
||||
GENERATED = libxml2class.py libxml2class.txt $(BUILT_SOURCES)
|
||||
CLEANFILES = libxml2.py $(GENERATED)
|
||||
|
||||
all-local: libxml2.py
|
||||
|
||||
$(GENERATED): $(srcdir)/generator.py $(API_DESC)
|
||||
$(PYTHON) $(srcdir)/generator.py $(srcdir)
|
||||
|
||||
# libxml.c #includes libxml2-export.c
|
||||
libxml.$(OBJEXT): libxml2-export.c
|
||||
|
||||
libxml2.py: $(srcdir)/libxml.py libxml2class.py
|
||||
cat $(srcdir)/libxml.py `test -f libxml2class.py || echo $(srcdir)/`libxml2class.py > $@
|
||||
|
||||
python_PYTHON = \
|
||||
drv_libxml2.py \
|
||||
libxml2.py
|
||||
clean-local:
|
||||
rm -rf __pycache__
|
||||
|
||||
CLEANFILES = *.pyc
|
||||
|
||||
MAINTAINERCLEANFILES = libxml2.py libxml2class.*
|
||||
|
||||
API_DESC = $(top_srcdir)/doc/libxml2-api.xml $(srcdir)/libxml2-python-api.xml
|
||||
GENERATED = libxml2class.py libxml2class.txt $(BUILT_SOURCES)
|
||||
|
||||
# Generated sources
|
||||
all-local: drv_libxml2.py libxml2.py
|
||||
|
||||
$(GENERATED): $(srcdir)/generator.py $(API_DESC)
|
||||
$(PYTHON) $(srcdir)/generator.py $(srcdir)
|
||||
endif
|
||||
|
Reference in New Issue
Block a user