X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=ruby%2FMakefile.am;h=88d3323d528090ebfd46da8f31b8bc7cdc04d2c9;hb=9ba779ea367b2ea7077da7bdd75e813cd06c7eea;hp=82d130dd6c7c19574cb8890fb0fa62b06d727928;hpb=c477e2fb78347728aaacbbc89666dcda1481a4b9;p=libguestfs.git diff --git a/ruby/Makefile.am b/ruby/Makefile.am index 82d130d..88d3323 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,20 @@ 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) all: $(generator_built) 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 lib/guestfs.rb $(DESTDIR)$(RUBY_SITELIB) + $(INSTALL) -p -m 0755 ext/guestfs/_guestfs.so $(DESTDIR)$(RUBY_SITEARCH) endif