From: David Reiss Date: Thu, 20 Nov 2008 21:24:18 +0000 (+0000) Subject: Fix "make distclean" when Ruby is not in use X-Git-Tag: 0.2.0~407 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=8c28df256913e8c2fdfb64538ffcb7f9f4b9bd91;p=common%2Fthrift.git Fix "make distclean" when Ruby is not in use git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@719379 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/lib/rb/Makefile.am b/lib/rb/Makefile.am index 43acfff2..07fc5c6c 100644 --- a/lib/rb/Makefile.am +++ b/lib/rb/Makefile.am @@ -7,7 +7,9 @@ all-local: install-exec-hook: $(RUBY) setup.rb install +# Make sure this doesn't fail if Ruby is not configured. clean-local: - $(RUBY) setup.rb clean + RUBY=$(RUBY) ; if test -z "$$RUBY" ; then RUBY=: ; fi ; \ + $$RUBY setup.rb clean check-local: all