X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=ruby%2FMakefile.am;h=8139140ae6b0f48a1ac646ffedf6767df89d12fe;hp=82d130dd6c7c19574cb8890fb0fa62b06d727928;hb=41a7a68cf33a174ba950aa29951a07c391a16b4d;hpb=c477e2fb78347728aaacbbc89666dcda1481a4b9 diff --git a/ruby/Makefile.am b/ruby/Makefile.am index 82d130d..8139140 100644 --- a/ruby/Makefile.am +++ b/ruby/Makefile.am @@ -13,7 +13,7 @@ # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. include $(top_srcdir)/subdir-rules.mk @@ -24,6 +24,8 @@ generator_built = \ EXTRA_DIST = \ $(generator_built) \ Rakefile.in \ + README.rdoc \ + doc/site/index.html \ ext/guestfs/extconf.rb \ lib/guestfs.rb \ run-bindtests \ @@ -46,9 +48,21 @@ TESTS = run-bindtests run-ruby-tests TESTS_ENVIRONMENT = \ LD_LIBRARY_PATH=$(top_builddir)/src/.libs \ - LIBGUESTFS_PATH=$(top_builddir)/appliance + LIBGUESTFS_PATH=$(top_builddir)/appliance \ + TMPDIR=$(top_builddir) \ + RUBY=$(RUBY) all: $(generator_built) - rake build + $(RAKE) build + $(RAKE) rdoc + +RUBY_SITELIB := $(shell $(RUBY) -rrbconfig -e "puts Config::CONFIG['sitelibdir']") +RUBY_SITEARCH := $(shell $(RUBY) -rrbconfig -e "puts Config::CONFIG['sitearchdir']") + +install: + $(MKDIR_P) $(DESTDIR)$(RUBY_SITELIB) + $(MKDIR_P) $(DESTDIR)$(RUBY_SITEARCH) + $(INSTALL) -p -m 0644 $(srcdir)/lib/guestfs.rb $(DESTDIR)$(RUBY_SITELIB) + $(INSTALL) -p -m 0755 $(builddir)/ext/guestfs/_guestfs.so $(DESTDIR)$(RUBY_SITEARCH) endif