git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2325c99
)
ruby: Add 'make install' rule for ruby bindings (RHBZ#652796).
author
Richard W.M. Jones
<rjones@redhat.com>
Fri, 12 Nov 2010 20:25:45 +0000
(20:25 +0000)
committer
Richard W.M. Jones
<rjones@redhat.com>
Fri, 12 Nov 2010 22:09:49 +0000
(22:09 +0000)
ruby/Makefile.am
patch
|
blob
|
history
diff --git
a/ruby/Makefile.am
b/ruby/Makefile.am
index
82d130d
..
cd2d4ed
100644
(file)
--- 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