blob: da45ed5774947950bb419eb1ea9cc4d4955e59d2 [file] [log] [blame]
David Reissea2cba82009-03-30 21:35:00 +00001#
2# Licensed to the Apache Software Foundation (ASF) under one
3# or more contributor license agreements. See the NOTICE file
4# distributed with this work for additional information
5# regarding copyright ownership. The ASF licenses this file
6# to you under the Apache License, Version 2.0 (the
7# "License"); you may not use this file except in compliance
8# with the License. You may obtain a copy of the License at
9#
10# http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing,
13# software distributed under the License is distributed on an
14# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15# KIND, either express or implied. See the License for the
16# specific language governing permissions and limitations
17# under the License.
18#
19
David Reiss48141bf2009-03-18 23:59:56 +000020EXTRA_DIST = \
21 CHANGELOG \
David Reiss48141bf2009-03-18 23:59:56 +000022 Rakefile \
23 Manifest \
24 setup.rb \
25 lib \
26 ext \
27 benchmark \
David Reiss4b86e622009-05-22 19:52:06 +000028 script \
David Reiss48141bf2009-03-18 23:59:56 +000029 spec
Kevin Clark4bd89162008-07-08 00:47:49 +000030
31all-local:
Bryan Duxbury3f0b5262010-05-12 21:31:58 +000032 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
Kevin Clark4bd89162008-07-08 00:47:49 +000033 $(RUBY) setup.rb setup
34
35install-exec-hook:
36 $(RUBY) setup.rb install
37
David Reiss8c28df22008-11-20 21:24:18 +000038# Make sure this doesn't fail if Ruby is not configured.
Kevin Clark4bd89162008-07-08 00:47:49 +000039clean-local:
David Reiss8c28df22008-11-20 21:24:18 +000040 RUBY=$(RUBY) ; if test -z "$$RUBY" ; then RUBY=: ; fi ; \
41 $$RUBY setup.rb clean
Kevin Clark4bd89162008-07-08 00:47:49 +000042
43check-local: all
Bryan Duxburyec473582009-04-07 16:31:04 +000044if HAVE_RSPEC
45 rake spec
46endif
47