David Reiss | ea2cba8 | 2009-03-30 21:35:00 +0000 | [diff] [blame] | 1 | # |
| 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 Reiss | 48141bf | 2009-03-18 23:59:56 +0000 | [diff] [blame] | 20 | EXTRA_DIST = \ |
| 21 | CHANGELOG \ |
David Reiss | 48141bf | 2009-03-18 23:59:56 +0000 | [diff] [blame] | 22 | Rakefile \ |
| 23 | Manifest \ |
| 24 | setup.rb \ |
| 25 | lib \ |
| 26 | ext \ |
| 27 | benchmark \ |
David Reiss | 4b86e62 | 2009-05-22 19:52:06 +0000 | [diff] [blame] | 28 | script \ |
David Reiss | 48141bf | 2009-03-18 23:59:56 +0000 | [diff] [blame] | 29 | spec |
Kevin Clark | 4bd8916 | 2008-07-08 00:47:49 +0000 | [diff] [blame] | 30 | |
| 31 | all-local: |
Bryan Duxbury | 3f0b526 | 2010-05-12 21:31:58 +0000 | [diff] [blame] | 32 | 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 Clark | 4bd8916 | 2008-07-08 00:47:49 +0000 | [diff] [blame] | 33 | $(RUBY) setup.rb setup |
| 34 | |
| 35 | install-exec-hook: |
| 36 | $(RUBY) setup.rb install |
| 37 | |
David Reiss | 8c28df2 | 2008-11-20 21:24:18 +0000 | [diff] [blame] | 38 | # Make sure this doesn't fail if Ruby is not configured. |
Kevin Clark | 4bd8916 | 2008-07-08 00:47:49 +0000 | [diff] [blame] | 39 | clean-local: |
David Reiss | 8c28df2 | 2008-11-20 21:24:18 +0000 | [diff] [blame] | 40 | RUBY=$(RUBY) ; if test -z "$$RUBY" ; then RUBY=: ; fi ; \ |
| 41 | $$RUBY setup.rb clean |
Kevin Clark | 4bd8916 | 2008-07-08 00:47:49 +0000 | [diff] [blame] | 42 | |
| 43 | check-local: all |
Bryan Duxbury | ec47358 | 2009-04-07 16:31:04 +0000 | [diff] [blame] | 44 | if HAVE_RSPEC |
| 45 | rake spec |
| 46 | endif |
| 47 | |