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
20export CLASSPATH
21
22all-local:
23	$(GRADLE) $(GRADLE_OPTS) assemble \
24		-Prelease=true \
25		-Pthrift.version=$(PACKAGE_VERSION) \
26		--console=plain
27
28install-exec-hook:
29	$(GRADLE) $(GRADLE_OPTS) publishToMavenLocal \
30		-Prelease=true \
31		-Pinstall.path=$(DESTDIR)$(JAVA_PREFIX) \
32		-Pinstall.javadoc.path=$(DESTDIR)$(docdir)/java \
33		-Pthrift.version=$(PACKAGE_VERSION) \
34		--console=plain
35
36clean-local:
37	$(GRADLE) $(GRADLE_OPTS) clean --console=plain
38
39precross: $(THRIFT)
40	$(GRADLE) $(GRADLE_OPTS) shadowJar \
41		-Prelease=true \
42		-Pthrift.version=$(PACKAGE_VERSION) \
43		-Pthrift.compiler=$(THRIFT) \
44		--console=plain
45
46check-local: $(THRIFT)
47	$(GRADLE) $(GRADLE_OPTS) test \
48		-Prelease=true \
49		-Pthrift.version=$(PACKAGE_VERSION) \
50		-Pthrift.compiler=$(THRIFT) \
51		--console=plain
52
53maven-publish:
54	$(GRADLE) $(GRADLE_OPTS) publish \
55		-Prelease=true \
56		-Pthrift.version=$(PACKAGE_VERSION) \
57		--console=plain
58
59EXTRA_DIST = \
60	build.gradle \
61	gradle.properties \
62	settings.gradle \
63	gradle \
64	CMakeLists.txt \
65	coding_standards.md \
66	android \
67	src \
68	code_quality_tools \
69	README.md
70