blob: 1841065f5a3bba47418ec3a36f29d67a75232634 [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
Bryan Duxbury6e292e52011-06-15 20:34:53 +000020DESTDIR ?= /
21
jfarrell5a900ea2013-08-18 10:54:52 -040022if HAVE_BUNDLER
jfarrell507740c2014-01-22 22:20:21 -050023
24all-local:
Jens Geyer79f988c2014-10-03 20:42:54 +020025 $(BUNDLER) install
Roger Meiera2d12b62015-03-24 21:15:06 +010026 $(BUNDLER) exec rake build_ext
Kevin Clark4bd89162008-07-08 00:47:49 +000027
28install-exec-hook:
Jens Geyer79f988c2014-10-03 20:42:54 +020029 $(BUNDLER) exec rake install
Kevin Clark4bd89162008-07-08 00:47:49 +000030
31clean-local:
jfarrellf13e4312015-08-25 00:39:29 -040032 $(BUNDLER) install
Jens Geyer79f988c2014-10-03 20:42:54 +020033 $(BUNDLER) exec rake clean
James E. King IIIb96c4382019-01-24 17:45:07 -050034 $(RM) -r spec/gen-rb/
Kevin Clark4bd89162008-07-08 00:47:49 +000035
36check-local: all
Jens Geyer79f988c2014-10-03 20:42:54 +020037 $(BUNDLER) install
38 $(BUNDLER) exec rake
jfarrell507740c2014-01-22 22:20:21 -050039
Bryan Duxburyec473582009-04-07 16:31:04 +000040endif
41
James E. King IIIb96c4382019-01-24 17:45:07 -050042dist-hook:
43 $(RM) -r $(distdir)/spec/gen-rb/
44
jfarrell8fd8c632014-07-10 09:14:51 -040045EXTRA_DIST = \
jfarrellf13e4312015-08-25 00:39:29 -040046 coding_standards.md \
Jens Geyer79f988c2014-10-03 20:42:54 +020047 Rakefile \
48 Gemfile \
49 thrift.gemspec \
50 lib \
51 ext \
52 benchmark \
53 script \
54 spec \
55 README.md