Permalink
Browse files

Add new targets to Makefile.ruby console, clean

Change-Id: If8065e4ac3a8999ccc54f59bad14e33bfe2257cf
  • Loading branch information...
1 parent 081b2b7 commit a08ed5dd9247fe01c2bb01847d50ae984f3779a8 @avsej avsej committed Feb 14, 2013
Showing with 14 additions and 2 deletions.
  1. +14 −2 Makefile.ruby
View
@@ -24,7 +24,9 @@ client.bundled: client/Gemfile
(cd client; rbenv each -v bundle install --no-color)
touch $@
-libcouchbase: libcouchbase/libcouchbase.la
+libcouchbase: $(PREFIX)/lib/libcouchbase.so
+
+$(PREFIX)/lib/libcouchbase.so: libcouchbase/libcouchbase.la
(cd libcouchbase; $(MAKE) install)
libcouchbase/libcouchbase.la: libcouchbase/Makefile $(LCBSOURCE)
@@ -61,4 +63,14 @@ $(RBENVDIR)/.done:
git clone git://github.com/sstephenson/rbenv.git $(RBENVDIR)
touch $@
-.PHONY: all check install-rubies
+clean:
+ repo forall -c 'git clean -dfxq'
+ rm -rf install
+
+client/lib/couchbase_ext.so: client.bundled $(RUBYSOURCE) $(PREFIX)/lib/libcouchbase.so
+ (cd client; bundle exec rake compile with_libcouchbase_dir=$(PREFIX))
+
+console: client/lib/couchbase_ext.so
+ (cd client; bundle exec rake console)
+
+.PHONY: all check install-rubies clean console

0 comments on commit a08ed5d

Please sign in to comment.