blob: fc63af4827fcd4e998b81a8da490c4a037a9b93a [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 Reissfff84d12009-05-22 19:50:33 +000020export CLASSPATH
21
David Reiss3de1c4e2008-02-24 17:45:03 +000022all-local:
Jiayu Liu23b86362022-05-06 12:42:18 +080023 $(GRADLE) $(GRADLE_OPTS) assemble \
Alex Volanis7004a612018-01-24 10:30:13 -050024 -Prelease=true \
25 -Pthrift.version=$(PACKAGE_VERSION) \
26 --console=plain
David Reissf8dcf032008-02-23 22:07:39 +000027
28install-exec-hook:
Jiayu Liu5b158382022-05-12 00:20:37 +080029 $(GRADLE) $(GRADLE_OPTS) publishToMavenLocal \
Alex Volanis7004a612018-01-24 10:30:13 -050030 -Prelease=true \
31 -Pinstall.path=$(DESTDIR)$(JAVA_PREFIX) \
32 -Pinstall.javadoc.path=$(DESTDIR)$(docdir)/java \
33 -Pthrift.version=$(PACKAGE_VERSION) \
34 --console=plain
David Reissf8dcf032008-02-23 22:07:39 +000035
David Reiss2ca456a2008-02-24 16:42:18 +000036clean-local:
Jiayu Liu23b86362022-05-06 12:42:18 +080037 $(GRADLE) $(GRADLE_OPTS) clean --console=plain
David Reissf8dcf032008-02-23 22:07:39 +000038
Roger Meier41ad4342015-03-24 22:30:40 +010039precross: $(THRIFT)
Jiayu Liu23b86362022-05-06 12:42:18 +080040 $(GRADLE) $(GRADLE_OPTS) shadowJar \
Alex Volanis7004a612018-01-24 10:30:13 -050041 -Prelease=true \
42 -Pthrift.version=$(PACKAGE_VERSION) \
43 -Pthrift.compiler=$(THRIFT) \
44 --console=plain
Roger Meier41ad4342015-03-24 22:30:40 +010045
Alex Volanis7004a612018-01-24 10:30:13 -050046check-local: $(THRIFT)
Jiayu Liu23b86362022-05-06 12:42:18 +080047 $(GRADLE) $(GRADLE_OPTS) test \
Alex Volanis7004a612018-01-24 10:30:13 -050048 -Prelease=true \
49 -Pthrift.version=$(PACKAGE_VERSION) \
50 -Pthrift.compiler=$(THRIFT) \
51 --console=plain
52
53maven-publish:
Jiayu Liu5b158382022-05-12 00:20:37 +080054 $(GRADLE) $(GRADLE_OPTS) publish \
Alex Volanis7004a612018-01-24 10:30:13 -050055 -Prelease=true \
56 -Pthrift.version=$(PACKAGE_VERSION) \
57 --console=plain
Bryan Duxbury50119f12009-01-29 21:31:25 +000058
Thomas63f04582024-03-21 22:51:07 +090059distdir:
60 $(MAKE) $(AM_MAKEFLAGS) distdir-am
61
jfarrell8fd8c632014-07-10 09:14:51 -040062EXTRA_DIST = \
Alex Volanis7004a612018-01-24 10:30:13 -050063 build.gradle \
64 gradle.properties \
65 settings.gradle \
66 gradle \
jfarrellf13e4312015-08-25 00:39:29 -040067 CMakeLists.txt \
68 coding_standards.md \
Nobuaki Sukegawa73d16372016-03-19 23:32:11 +090069 android \
Jens Geyer79f988c2014-10-03 20:42:54 +020070 src \
Alex Volanis7004a612018-01-24 10:30:13 -050071 code_quality_tools \
Nobuaki Sukegawa73d16372016-03-19 23:32:11 +090072 README.md