Makefile revision 341
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
fdd80e9a55c70b36a3bf3e409b86897301c44ff8Automatic Updater# CDDL HEADER START
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# The contents of this file are subject to the terms of the
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater# Common Development and Distribution License (the "License").
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# You may not use this file except in compliance with the License.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# or http://www.opensolaris.org/os/licensing.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# See the License for the specific language governing permissions
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# and limitations under the License.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
fdd80e9a55c70b36a3bf3e409b86897301c44ff8Automatic Updater# information: Portions Copyright [yyyy] [name of copyright owner]
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# CDDL HEADER END
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
e21a2904f02a03fa06b6db04d348f65fe9c67b2bMark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinclude ../../make-rules/shared-macros.mk
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_NAME= apache-ant
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_VERSION= 1.7.1
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_ARCHIVE= $(COMPONENT_SRC)-src.tar.bz2
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_ARCHIVE_HASH= sha1:8a468d3ce1e84739a78f779770416a8bd502eaf5
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_ARCHIVE_URL= http://archive.apache.org/dist/ant/source/$(COMPONENT_ARCHIVE)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinclude ../../make-rules/prep.mk
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinclude ../../make-rules/justmake.mk
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinclude ../../make-rules/ips.mk
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsGMAKE=./build.sh
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsANT_ENV+=JAVA_HOME=$(JAVA_HOME)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsANT_ENV+=CLASSPATH=/usr/share/lib/java/junit.jar:/usr/share/antlr-2.7.7/antlr.jar
cedb0bd0c1e3c461b7e479a16d3adfd5b150f1f4Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsANT_DIST_DIRS+=-Ddist.dir=$(PROTO_DIR)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsANT_DIST_DIRS+=-Ddist.bin=$(PROTO_DIR)/usr/bin
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsANT_DIST_DIRS+=-Ddist.etc=$(PROTO_DIR)/usr/share/lib/ant
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsANT_DIST_DIRS+=-Ddist.docs=$(PROTO_DIR)/usr/share/doc/ant
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsANT_DIST_DIRS+=-Ddist.javadocs=$(PROTO_DIR)/usr/share/doc/ant/manual/api
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsANT_DIST_DIRS+=-Ddist.lib=$(PROTO_DIR)/usr/share/lib/ant
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_BUILD_TARGETS = build
71c66a876ecca77923638d3f94cc0783152b2f03Mark AndrewsCOMPONENT_BUILD_ENV += $(ANT_ENV)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_INSTALL_ARGS = $(ANT_DIST_DIRS)
71c66a876ecca77923638d3f94cc0783152b2f03Mark AndrewsCOMPONENT_INSTALL_TARGETS = dist
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_INSTALL_ENV += $(ANT_ENV)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
922312472e2e05ebc64993d465999c5351b83036Automatic UpdaterCOMPONENT_TEST_TARGETS = test
922312472e2e05ebc64993d465999c5351b83036Automatic UpdaterCOMPONENT_TEST_ENV += $(ANT_ENV)
922312472e2e05ebc64993d465999c5351b83036Automatic Updater
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontbuild: $(BUILD_32)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontinstall: $(INSTALL_32)
71c66a876ecca77923638d3f94cc0783152b2f03Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewstest: $(TEST_32)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
2cbb4ab75757fbb656997a82c14ca07db37d481aAutomatic UpdaterBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
2cbb4ab75757fbb656997a82c14ca07db37d481aAutomatic Updater
2cbb4ab75757fbb656997a82c14ca07db37d481aAutomatic Updaterinclude ../../make-rules/depend.mk
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater