Makefile revision 181
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'Amore#
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'Amore# CDDL HEADER START
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'Amore#
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'Amore# The contents of this file are subject to the terms of the
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'Amore# Common Development and Distribution License (the "License").
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'Amore# You may not use this file except in compliance with the License.
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'Amore#
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'Amore# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'Amore# or http://www.opensolaris.org/os/licensing.
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'Amore# See the License for the specific language governing permissions
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'Amore# and limitations under the License.
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'Amore#
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'Amore# When distributing Covered Code, include this CDDL HEADER in each
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'Amore# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'Amore# If applicable, add the following below this CDDL HEADER, with the
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'Amore# fields enclosed by brackets "[]" replaced with your own identifying
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'Amore# information: Portions Copyright [yyyy] [name of copyright owner]
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'Amore#
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'Amore# CDDL HEADER END
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'Amore#
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'Amore
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'Amore#
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'Amore# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'Amore#
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'Amore
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'Amoreinclude ../../make-rules/shared-macros.mk
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'Amore
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'AmoreCOMPONENT_NAME= apache-ant
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'AmoreCOMPONENT_VERSION= 1.7.1
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'AmoreCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'AmoreCOMPONENT_ARCHIVE= $(COMPONENT_SRC)-src.tar.bz2
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'AmoreCOMPONENT_ARCHIVE_HASH= sha1:8a468d3ce1e84739a78f779770416a8bd502eaf5
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'AmoreCOMPONENT_ARCHIVE_URL= http://archive.apache.org/dist/ant/source/$(COMPONENT_ARCHIVE)
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'Amore
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'Amoreinclude ../../make-rules/prep.mk
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'Amoreinclude ../../make-rules/justmake.mk
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'Amoreinclude ../../make-rules/ips.mk
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'Amore
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'AmoreGMAKE=./build.sh
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'Amore
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'AmoreANT_ENV+=JAVA_HOME=$(JAVA_HOME)
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'AmoreANT_ENV+=CLASSPATH=/usr/share/lib/java/junit.jar:/usr/share/antlr-2.7.7/antlr.jar
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'Amore
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'AmoreANT_DIST_DIRS+=-Ddist.dir=$(PROTO_DIR)
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'AmoreANT_DIST_DIRS+=-Ddist.bin=$(PROTO_DIR)/usr/bin
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'AmoreANT_DIST_DIRS+=-Ddist.etc=$(PROTO_DIR)/usr/share/lib/ant
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'AmoreANT_DIST_DIRS+=-Ddist.docs=$(PROTO_DIR)/usr/share/doc/ant
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'AmoreANT_DIST_DIRS+=-Ddist.javadocs=$(PROTO_DIR)/usr/share/doc/ant/manual/api
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'AmoreANT_DIST_DIRS+=-Ddist.lib=$(PROTO_DIR)/usr/share/lib/ant
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'Amore
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'AmoreCOMPONENT_BUILD_TARGETS = build
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'AmoreCOMPONENT_BUILD_ENV += $(ANT_ENV)
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'Amore
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'AmoreCOMPONENT_INSTALL_ARGS = $(ANT_DIST_DIRS)
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'AmoreCOMPONENT_INSTALL_TARGETS = dist
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'AmoreCOMPONENT_INSTALL_ENV += $(ANT_ENV)
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'Amore
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'AmoreCOMPONENT_TEST_TARGETS = test
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'AmoreCOMPONENT_TEST_ENV += $(ANT_ENV)
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'Amore
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'Amorebuild: $(BUILD_32)
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'Amore
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'Amoreinstall: $(INSTALL_32)
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'Amore
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'Amoretest: $(TEST_32)
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'Amore
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'AmoreBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'Amore
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'Amoreinclude ../../make-rules/depend.mk
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'Amore