diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2010-11-12 20:25:45 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2010-11-12 22:09:49 +0000 |
commit | aec3091fa9c65e2f84d0bf9cdd520e597957eca9 (patch) | |
tree | 4a2f8d2df7377b541e7b03c491d65a04797edd88 /ruby/Makefile.am | |
parent | 2325c99d07fa750c1098a3b2bc1bc80fb6bc846a (diff) | |
download | libguestfs-aec3091fa9c65e2f84d0bf9cdd520e597957eca9.tar.gz libguestfs-aec3091fa9c65e2f84d0bf9cdd520e597957eca9.tar.xz libguestfs-aec3091fa9c65e2f84d0bf9cdd520e597957eca9.zip |
ruby: Add 'make install' rule for ruby bindings (RHBZ#652796).
Diffstat (limited to 'ruby/Makefile.am')
-rw-r--r-- | ruby/Makefile.am | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ruby/Makefile.am b/ruby/Makefile.am index 82d130dd..cd2d4ed0 100644 --- a/ruby/Makefile.am +++ b/ruby/Makefile.am @@ -51,4 +51,13 @@ TESTS_ENVIRONMENT = \ all: $(generator_built) rake build +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 |