From bc2f1b3cf4302866dadefd03f10619fdcfc43003 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 11 Jun 2007 13:55:03 +0000 Subject: [PATCH] Mon Jun 11 14:49:00 BST 2007 Richard W.M. Jones * docs/examples/index.py: Autogenerate Makefile.am and .cvsignore in this directory with corrected LDADDS and including some generated subdirectories which CVS should ignore. --- ChangeLog | 7 +++++++ docs/examples/.cvsignore | 6 +++--- docs/examples/Makefile.am | 14 +++++++------- docs/examples/index.py | 4 +++- 4 files changed, 20 insertions(+), 11 deletions(-) diff --git a/ChangeLog b/ChangeLog index fd5e6ad3fc..e4daeb5a3a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Mon Jun 11 14:49:00 BST 2007 Richard W.M. Jones + + * docs/examples/index.py: Autogenerate Makefile.am and + .cvsignore in this directory with corrected LDADDS and + including some generated subdirectories which CVS should + ignore. + Mon Jun 11 14:10:00 BST 2007 Richard W.M. Jones * libvirt.spec.in: BuildRequires gnutls-devel and diff --git a/docs/examples/.cvsignore b/docs/examples/.cvsignore index a854064512..aa743cb715 100644 --- a/docs/examples/.cvsignore +++ b/docs/examples/.cvsignore @@ -1,7 +1,7 @@ .memdump Makefile.in Makefile -info1 -suspend .deps -.libs \ No newline at end of file +.libs +suspend +info1 diff --git a/docs/examples/Makefile.am b/docs/examples/Makefile.am index 6da54d6d30..c62d128208 100644 --- a/docs/examples/Makefile.am +++ b/docs/examples/Makefile.am @@ -18,24 +18,24 @@ install-data-local: EXTRA_DIST=examples.xsl index.py examples.xml -noinst_PROGRAMS=info1 suspend - -info1_SOURCES=info1.c -info1_LDFLAGS= -info1_DEPENDENCIES= $(DEPS) -info1_LDADD= $(LDADDS) +noinst_PROGRAMS=suspend info1 suspend_SOURCES=suspend.c suspend_LDFLAGS= suspend_DEPENDENCIES= $(DEPS) suspend_LDADD= $(LDADDS) +info1_SOURCES=info1.c +info1_LDFLAGS= +info1_DEPENDENCIES= $(DEPS) +info1_LDADD= $(LDADDS) + valgrind: $(MAKE) CHECKER='valgrind' tests tests: $(noinst_PROGRAMS) @(echo '## examples regression tests') - @($(CHECKER) ./info1) @($(CHECKER) ./suspend) + @($(CHECKER) ./info1) diff --git a/docs/examples/index.py b/docs/examples/index.py index 5f56f2f35d..2bc2b160ae 100755 --- a/docs/examples/index.py +++ b/docs/examples/index.py @@ -224,7 +224,7 @@ def dump_Makefile(): SUBDIRS=python INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I@srcdir@/include DEPS = $(top_builddir)/src/libvirt.la -LDADDS = @STATIC_BINARIES@ $(top_builddir)/src/libvirt.la +LDADDS = @STATIC_BINARIES@ $(WARN_CFLAGS) $(top_builddir)/src/libvirt.la rebuild: examples.xml index.html @@ -272,6 +272,8 @@ install-data-local: ignore = """.memdump Makefile.in Makefile +.deps +.libs """ for example in examples: ignore = ignore + "%s\n" % (example)