[Pkg-libvirt-commits] [libguestfs] 05/65: ruby: Only rebuild rdoc when absolutely necessary.

Hilko Bengen bengen at moszumanska.debian.org
Tue Apr 21 12:10:42 UTC 2015


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to branch experimental
in repository libguestfs.

commit 5c65b9108d2eabee9d885dcc61df5862bd3115fe
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Sat Mar 28 18:08:21 2015 +0000

    ruby: Only rebuild rdoc when absolutely necessary.
    
    Rebuilding the ruby documentation takes 51 seconds on my laptop, and
    that's a significant fraction of the entire build.  Make sure we only
    rebuild the documentation when necessary.
---
 .gitignore       | 1 +
 ruby/Makefile.am | 9 ++++++++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/.gitignore b/.gitignore
index 810ed20..9c329a0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -438,6 +438,7 @@ Makefile.in
 /ruby/ext/guestfs/_guestfs.so
 /ruby/ext/guestfs/mkmf.log
 /ruby/Rakefile
+/ruby/stamp-rdoc
 /run
 /sparsify/.depend
 /sparsify/link.sh
diff --git a/ruby/Makefile.am b/ruby/Makefile.am
index d28d77b..65c0ff8 100644
--- a/ruby/Makefile.am
+++ b/ruby/Makefile.am
@@ -46,9 +46,16 @@ CLEANFILES = \
 
 if HAVE_RUBY
 
-all: $(generator_built)
+all: $(generator_built) doc/site/index.html
 	$(RAKE) build
+
+# Rebuilding the documentation takes forever, so be careful to only do
+# it when the ruby bindings change.
+doc/site/index.html doc/site/api/table_of_contents.html: stamp-rdoc
+
+stamp-rdoc: ext/guestfs/_guestfs.c
 	$(RAKE) rdoc
+	touch $@
 
 # Packagers can override this by doing: make INSTALLDIRS=vendor install
 # INSTALLDIRS also affects where Perl bindings are installed.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list