mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-06 05:11:14 +00:00
d5117af382
* Makefile.am: Expand some "*" wildcards, and (for now) disable the relatively unimportant, distuninstallcheck target. Fix a few redirect-directly-to-target bugs. Add a few $(srcdir)/ prefixes and add an uninstall-local rule. * docs/Makefile.am: More of the same. Split some long lines. * python/Makefile.am: Likewise. * python/tests/Makefile.am: Likewise. * qemud/Makefile.am: Likewise. * tests/Makefile.am: Remove the directories already listed in SUBDIRS. * docs/examples/index.py: Adapt to produce the desired changes in docs/examples/Makefile.am. Also, sort *.c, so results are reproducible, and emit a comment telling emacs and vi that the file is read-only. * docs/examples/Makefile.am: Regenerate. Author: Jim Meyering <meyering@redhat.com>
77 lines
1.7 KiB
Makefile
77 lines
1.7 KiB
Makefile
# Makefile for libvirt python library
|
|
|
|
SUBDIRS= . tests
|
|
|
|
INCLUDES = \
|
|
$(WARN_CFLAGS) \
|
|
-I$(PYTHON_INCLUDES) \
|
|
-I$(top_srcdir)/include \
|
|
-I$(top_builddir)/include \
|
|
-I$(top_builddir)/$(subdir)
|
|
|
|
DOCS_DIR = $(datadir)/doc/libvirt-python-$(LIBVIRT_VERSION)
|
|
|
|
DOCS = ${srcdir}/TODO
|
|
|
|
EXTRA_DIST = \
|
|
libvir.c \
|
|
types.c \
|
|
generator.py \
|
|
libvirt_wrap.h \
|
|
libvirt.py \
|
|
libvir.py \
|
|
libvirt-python-api.xml \
|
|
$(DOCS)
|
|
|
|
libvirtmod_la_LDFLAGS = -module -avoid-version -L$(top_builddir)/src/.libs
|
|
|
|
if WITH_PYTHON
|
|
mylibs = $(top_builddir)/src/libvirt.la
|
|
|
|
all-local: libvirt.py
|
|
|
|
python_LTLIBRARIES = libvirtmod.la
|
|
|
|
libvirtmod_la_SOURCES = libvir.c types.c libvirt-py.c libvirt-py.h
|
|
libvirtmod_la_LIBADD = $(mylibs)
|
|
# Python header files contain a redundant decl, hence:
|
|
libvirtmod_la_CFLAGS = -Wno-redundant-decls
|
|
|
|
GENERATE = generator.py
|
|
API_DESC = $(top_srcdir)/docs/libvirt-api.xml $(srcdir)/libvirt-python-api.xml
|
|
GENERATED= libvirt-export.c \
|
|
libvirtclass.txt \
|
|
libvirt-py.c \
|
|
libvirt-py.h \
|
|
libvirtclass.py
|
|
|
|
$(GENERATED): $(srcdir)/$(GENERATE) $(API_DESC)
|
|
$(PYTHON) $(srcdir)/$(GENERATE) $(srcdir)
|
|
|
|
libvirt.py: $(srcdir)/libvir.py libvirtclass.py
|
|
cat $(srcdir)/libvir.py libvirtclass.py > $@-t
|
|
mv $@-t $@
|
|
|
|
$(libvirtmod_la_OBJECTS): $(GENERATED)
|
|
|
|
install-data-local:
|
|
$(mkinstalldirs) $(DESTDIR)$(pythondir)
|
|
@INSTALL@ -m 0644 libvirt.py $(DESTDIR)$(pythondir)
|
|
$(mkinstalldirs) $(DESTDIR)$(DOCS_DIR)
|
|
@(for doc in $(DOCS) ; \
|
|
do @INSTALL@ -m 0644 $$doc $(DESTDIR)$(DOCS_DIR) ; done)
|
|
|
|
uninstall-local:
|
|
rm -f $(DESTDIR)$(pythondir)/libvirt.py
|
|
|
|
CLEANFILES= $(GENERATED) libvirt.py
|
|
|
|
else
|
|
all:
|
|
endif
|
|
|
|
dummy:
|
|
|
|
tests test: all dummy
|
|
-@(cd tests && $(MAKE) MAKEFLAGS+=--silent tests)
|