mirror of
https://gitlab.com/libvirt/libvirt-python.git
synced 2025-08-04 12:21:57 +03:00
Tue Jun 26 14:40:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* src/remote_internal.c, python/Makefile.am: Python bindings fixed, and now building virConnect.getHostname and virConnect.getURI. Fixed a problem which stopped libvirt.py from being (re-)built. Rearranged python/Makefile.am to make it cleaner and clearer.
This commit is contained in:
32
Makefile.am
32
Makefile.am
@ -37,9 +37,22 @@ libvirtmod_la_LIBADD = $(mylibs)
|
|||||||
# Python header files contain a redundant decl, hence:
|
# Python header files contain a redundant decl, hence:
|
||||||
libvirtmod_la_CFLAGS = -Wno-redundant-decls
|
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
|
libvirt.py: $(srcdir)/libvir.py libvirtclass.py
|
||||||
cat $(srcdir)/libvir.py libvirtclass.py > libvirt.py
|
cat $(srcdir)/libvir.py libvirtclass.py > libvirt.py
|
||||||
|
|
||||||
|
$(libvirtmod_la_OBJECTS): $(GENERATED)
|
||||||
|
|
||||||
install-data-local:
|
install-data-local:
|
||||||
$(mkinstalldirs) $(DESTDIR)$(pythondir)
|
$(mkinstalldirs) $(DESTDIR)$(pythondir)
|
||||||
@INSTALL@ -m 0644 libvirt.py $(DESTDIR)$(pythondir)
|
@INSTALL@ -m 0644 libvirt.py $(DESTDIR)$(pythondir)
|
||||||
@ -47,24 +60,7 @@ install-data-local:
|
|||||||
@(for doc in $(DOCS) ; \
|
@(for doc in $(DOCS) ; \
|
||||||
do @INSTALL@ -m 0644 $$doc $(DESTDIR)$(DOCS_DIR) ; done)
|
do @INSTALL@ -m 0644 $$doc $(DESTDIR)$(DOCS_DIR) ; done)
|
||||||
|
|
||||||
GENERATE = generator.py
|
CLEANFILES= $(GENERATED) libvirt.py
|
||||||
API_DESC = $(top_srcdir)/docs/libvirt-api.xml $(srcdir)/libvirt-python-api.xml
|
|
||||||
GENERATED= libvirt.py \
|
|
||||||
libvirt-export.c \
|
|
||||||
libvirtclass.txt \
|
|
||||||
libvirt-py.c \
|
|
||||||
libvirt-py.h \
|
|
||||||
libvirtclass.py
|
|
||||||
|
|
||||||
CLEANFILES= $(GENERATED) gen_prog libvirt.py
|
|
||||||
|
|
||||||
$(GENERATED): gen_prog
|
|
||||||
|
|
||||||
gen_prog: $(srcdir)/$(GENERATE) $(API_DESC)
|
|
||||||
$(PYTHON) $(srcdir)/$(GENERATE) $(srcdir)
|
|
||||||
touch gen_prog
|
|
||||||
|
|
||||||
$(libvirtmod_la_OBJECTS): $(GENERATED)
|
|
||||||
|
|
||||||
else
|
else
|
||||||
all:
|
all:
|
||||||
|
Reference in New Issue
Block a user