From 61177b29d4fb30df3f6c0324981117046590c306 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 26 Jun 2007 13:47:04 +0000 Subject: Tue Jun 26 14:40:00 BST 2007 Richard W.M. Jones * 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. --- Makefile.am | 32 ++++++++++++++------------------ 1 file changed, 14 insertions(+), 18 deletions(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index dbb471d..4f97610 100644 --- a/Makefile.am +++ b/Makefile.am @@ -37,35 +37,31 @@ libvirtmod_la_LIBADD = $(mylibs) # Python header files contain a redundant decl, hence: libvirtmod_la_CFLAGS = -Wno-redundant-decls -libvirt.py: $(srcdir)/libvir.py libvirtclass.py - cat $(srcdir)/libvir.py libvirtclass.py > libvirt.py - -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) - GENERATE = generator.py API_DESC = $(top_srcdir)/docs/libvirt-api.xml $(srcdir)/libvirt-python-api.xml -GENERATED= libvirt.py \ - libvirt-export.c \ +GENERATED= 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) +$(GENERATED): $(srcdir)/$(GENERATE) $(API_DESC) $(PYTHON) $(srcdir)/$(GENERATE) $(srcdir) - touch gen_prog + +libvirt.py: $(srcdir)/libvir.py libvirtclass.py + cat $(srcdir)/libvir.py libvirtclass.py > libvirt.py $(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) + +CLEANFILES= $(GENERATED) libvirt.py + else all: endif -- cgit