blob: 64ff7b12beeb86062ade67d7f8837939f9da45d6 [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
Dmytro Shteflyuk60417982026-03-14 02:12:29 -040022SUBDIRS = .
23
24if WITH_TESTS
25SUBDIRS += test/fuzz
26endif
27
jfarrell5a900ea2013-08-18 10:54:52 -040028if HAVE_BUNDLER
jfarrell507740c2014-01-22 22:20:21 -050029
30all-local:
Jens Geyer79f988c2014-10-03 20:42:54 +020031 $(BUNDLER) install
Roger Meiera2d12b62015-03-24 21:15:06 +010032 $(BUNDLER) exec rake build_ext
Kevin Clark4bd89162008-07-08 00:47:49 +000033
34install-exec-hook:
Jens Geyer79f988c2014-10-03 20:42:54 +020035 $(BUNDLER) exec rake install
Kevin Clark4bd89162008-07-08 00:47:49 +000036
37clean-local:
jfarrellf13e4312015-08-25 00:39:29 -040038 $(BUNDLER) install
Jens Geyer79f988c2014-10-03 20:42:54 +020039 $(BUNDLER) exec rake clean
James E. King IIIb96c4382019-01-24 17:45:07 -050040 $(RM) -r spec/gen-rb/
Kevin Clark4bd89162008-07-08 00:47:49 +000041
42check-local: all
Jens Geyer79f988c2014-10-03 20:42:54 +020043 $(BUNDLER) install
44 $(BUNDLER) exec rake
jfarrell507740c2014-01-22 22:20:21 -050045
Bryan Duxburyec473582009-04-07 16:31:04 +000046endif
47
James E. King IIIb96c4382019-01-24 17:45:07 -050048dist-hook:
49 $(RM) -r $(distdir)/spec/gen-rb/
50
Thomas63f04582024-03-21 22:51:07 +090051distdir:
52 $(MAKE) $(AM_MAKEFLAGS) distdir-am
53
jfarrell8fd8c632014-07-10 09:14:51 -040054EXTRA_DIST = \
Jens Geyerdf52ad42026-04-10 00:14:27 +020055 .rubocop.yml \
jfarrellf13e4312015-08-25 00:39:29 -040056 coding_standards.md \
Jens Geyer79f988c2014-10-03 20:42:54 +020057 Rakefile \
58 Gemfile \
Jens Geyerdf52ad42026-04-10 00:14:27 +020059 Gemfile.linters \
60 Gemfile.lock \
61 test/fuzz/.gitignore \
Jens Geyer79f988c2014-10-03 20:42:54 +020062 thrift.gemspec \
63 lib \
64 ext \
65 benchmark \
66 script \
67 spec \
68 README.md