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
20all-local:
21	./gradlew $(GRADLE_OPTS) compile \
22		-Prelease=true \
23		--console=plain
24
25install-exec-hook:
26	./gradlew $(GRADLE_OPTS) publishToMavenLocal \
27		-Prelease=true \
28		--console=plain
29
30clean-local:
31	./gradlew $(GRADLE_OPTS) clean \
32		-Prelease=true \
33                --console=plain
34	$(RM) -r .gradle
35
36check-local: $(THRIFT)
37	./gradlew $(GRADLE_OPTS) test \
38		-Prelease=true \
39		--console=plain
40
41maven-publish:
42	./gradlew $(GRADLE_OPTS) publishMavenPublicationToMavenRepository \
43		-Prelease=true \
44                -Psign=true \
45		--console=plain
46
47dist-hook:
48	$(RM) -r $(distdir)/.gradle/
49
50EXTRA_DIST = \
51	CMakeLists.txt \
52	README.md \
53	build.gradle \
54	coding_standards.md \
55	gradle \
56	gradle.properties \
57	gradlew \
58	gradlew.bat \
59	settings.gradle \
60	src
61