blob: ea01978325f6596980bf792531ec73b21a645782 [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
Jake Farrelle74caa82011-04-20 19:48:12 +000020EXTRA_DIST = build.xml build.properties src test
David Reissc8abb072008-04-21 18:08:01 +000021
David Reissfff84d12009-05-22 19:50:33 +000022export CLASSPATH
23
David Reiss3de1c4e2008-02-24 17:45:03 +000024all-local:
David Reiss4ca0c8e2009-05-12 23:16:55 +000025 $(ANT) $(ANT_FLAGS)
David Reissf8dcf032008-02-23 22:07:39 +000026
27install-exec-hook:
David Reiss4ca0c8e2009-05-12 23:16:55 +000028 $(ANT) $(ANT_FLAGS) install -Dinstall.path=$(DESTDIR)$(JAVA_PREFIX) \
Bryan Duxbury32e04b42009-03-20 16:43:06 +000029 -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:
David Reissf9b5b122008-05-09 07:17:35 +000033 ANT=$(ANT) ; if test -z "$$ANT" ; then ANT=: ; fi ; \
David Reiss4ca0c8e2009-05-12 23:16:55 +000034 $$ANT $(ANT_FLAGS) clean
David Reissf8dcf032008-02-23 22:07:39 +000035
David Reiss223d6bd2008-02-24 02:03:17 +000036check-local: all
David Reiss4ca0c8e2009-05-12 23:16:55 +000037 $(ANT) $(ANT_FLAGS) test
Bryan Duxbury50119f12009-01-29 21:31:25 +000038