Makefile.am in thrift-0.6.0 vs Makefile.am in thrift-0.7.0
- old
+ new
@@ -26,15 +26,17 @@
ext \
benchmark \
script \
spec
+DESTDIR ?= /
+
all-local:
if [ -n "$(RUBY_PREFIX)" ] ; then $(RUBY) setup.rb config --prefix=$(DESTDIR)$(RUBY_PREFIX) --rbdir='$$libdir/ruby' --sodir='$$libdir/ruby' ; elif [ -n "$(DESTDIR)" ] ; then $(RUBY) setup.rb config --prefix=$(DESTDIR) ; else $(RUBY) setup.rb config ; fi
$(RUBY) setup.rb setup
install-exec-hook:
- $(RUBY) setup.rb install
+ $(RUBY) setup.rb install --prefix=$(DESTDIR)
# Make sure this doesn't fail if Ruby is not configured.
clean-local:
RUBY=$(RUBY) ; if test -z "$$RUBY" ; then RUBY=: ; fi ; \
$$RUBY setup.rb clean