blob: 65981ca68e0df42dd3003c8c01c9db7bc72d01d4 [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:
Alex Volanis7004a612018-01-24 10:30:13 -050023 ./gradlew $(GRADLE_OPTS) assemble \
24 -Prelease=true \
25 -Pthrift.version=$(PACKAGE_VERSION) \
26 --console=plain
David Reissf8dcf032008-02-23 22:07:39 +000027
28install-exec-hook:
Alex Volanis7004a612018-01-24 10:30:13 -050029 ./gradlew $(GRADLE_OPTS) install \
30 -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:
Alex Volanis7004a612018-01-24 10:30:13 -050037 ./gradlew $(GRADLE_OPTS) clean --console=plain
David Reissf8dcf032008-02-23 22:07:39 +000038
Roger Meier41ad4342015-03-24 22:30:40 +010039precross: $(THRIFT)
Alex Volanis7004a612018-01-24 10:30:13 -050040 ./gradlew $(GRADLE_OPTS) shadowJar \
41 -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)
47 ./gradlew $(GRADLE_OPTS) test \
48 -Prelease=true \
49 -Pthrift.version=$(PACKAGE_VERSION) \
50 -Pthrift.compiler=$(THRIFT) \
51 --console=plain
52
53maven-publish:
54 ./gradlew $(GRADLE_OPTS) uploadArchives \
55 -Prelease=true \
56 -Pthrift.version=$(PACKAGE_VERSION) \
57 --console=plain
Bryan Duxbury50119f12009-01-29 21:31:25 +000058
jfarrell8fd8c632014-07-10 09:14:51 -040059EXTRA_DIST = \
Alex Volanis7004a612018-01-24 10:30:13 -050060 build.gradle \
61 gradle.properties \
62 settings.gradle \
63 gradle \
64 gradlew \
65 gradlew.bat \
jfarrellf13e4312015-08-25 00:39:29 -040066 CMakeLists.txt \
67 coding_standards.md \
Nobuaki Sukegawa73d16372016-03-19 23:32:11 +090068 android \
Jens Geyer79f988c2014-10-03 20:42:54 +020069 src \
70 test \
Alex Volanis7004a612018-01-24 10:30:13 -050071 code_quality_tools \
Nobuaki Sukegawa73d16372016-03-19 23:32:11 +090072 README.md