Fix "make distclean" when Ruby is not in use
authorDavid Reiss <dreiss@apache.org>
Thu, 20 Nov 2008 21:24:18 +0000 (21:24 +0000)
committerDavid Reiss <dreiss@apache.org>
Thu, 20 Nov 2008 21:24:18 +0000 (21:24 +0000)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@719379 13f79535-47bb-0310-9956-ffa450edef68

lib/rb/Makefile.am

index 43acfff..07fc5c6 100644 (file)
@@ -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