blob: 859f3f2be7a57df61243f288d002a7bb533115e1 [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
Roger Meier41ad4342015-03-24 22:30:40 +010022THRIFT = $(top_builddir)/compiler/cpp/thrift
23
David Reiss3de1c4e2008-02-24 17:45:03 +000024all-local:
Jens Geyer79f988c2014-10-03 20:42:54 +020025 $(ANT) $(ANT_FLAGS)
David Reissf8dcf032008-02-23 22:07:39 +000026
27install-exec-hook:
Jens Geyer79f988c2014-10-03 20:42:54 +020028 $(ANT) $(ANT_FLAGS) install -Dinstall.path=$(DESTDIR)$(JAVA_PREFIX) \
29 -Dinstall.javadoc.path=$(DESTDIR)$(docdir)/java
David Reissf8dcf032008-02-23 22:07:39 +000030
David Reissf9b5b122008-05-09 07:17:35 +000031# Make sure this doesn't fail if ant is not configured.
David Reiss2ca456a2008-02-24 16:42:18 +000032clean-local:
Jens Geyer79f988c2014-10-03 20:42:54 +020033 ANT=$(ANT) ; if test -z "$$ANT" ; then ANT=: ; fi ; \
34 $$ANT $(ANT_FLAGS) clean
David Reissf8dcf032008-02-23 22:07:39 +000035
Roger Meier41ad4342015-03-24 22:30:40 +010036precross: $(THRIFT)
37 $(ANT) $(ANT_FLAGS) compile-test
38
David Reiss223d6bd2008-02-24 02:03:17 +000039check-local: all
Jens Geyer79f988c2014-10-03 20:42:54 +020040 $(ANT) $(ANT_FLAGS) test
Bryan Duxbury50119f12009-01-29 21:31:25 +000041
jfarrell8fd8c632014-07-10 09:14:51 -040042EXTRA_DIST = \
Jens Geyer79f988c2014-10-03 20:42:54 +020043 build.xml \
44 build.properties \
jfarrellf13e4312015-08-25 00:39:29 -040045 CMakeLists.txt \
46 coding_standards.md \
Jens Geyer79f988c2014-10-03 20:42:54 +020047 src \
48 test \
49 README.md