Makefile revision 844
409N/A#
114N/A# CDDL HEADER START
114N/A#
114N/A# The contents of this file are subject to the terms of the
114N/A# Common Development and Distribution License (the "License").
114N/A# You may not use this file except in compliance with the License.
114N/A#
114N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
114N/A# or http://www.opensolaris.org/os/licensing.
114N/A# See the License for the specific language governing permissions
114N/A# and limitations under the License.
114N/A#
114N/A# When distributing Covered Code, include this CDDL HEADER in each
114N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
114N/A# If applicable, add the following below this CDDL HEADER, with the
114N/A# fields enclosed by brackets "[]" replaced with your own identifying
114N/A# information: Portions Copyright [yyyy] [name of copyright owner]
114N/A#
114N/A# CDDL HEADER END
114N/A
114N/A#
260N/A# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
114N/A#
114N/A
114N/Ainclude ../../make-rules/shared-macros.mk
114N/A
451N/ACOMPONENT_NAME= memcached-java
382N/ACOMPONENT_VERSION= 2.0.1
212N/ACOMPONENT_RELEASE= release_$(COMPONENT_VERSION)
212N/ACOMPONENT_SRC= java_memcached-$(COMPONENT_RELEASE)
451N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
451N/ACOMPONENT_ARCHIVE_HASH= \
451N/A sha256:f0978f387cd6c42191a3ec366ecc5519f66ee03e686c5d080eb2516ebbecdcc4
114N/ACOMPONENT_ARCHIVE_URL= http://img.whalin.com/memcached/jdk5/standard/$(COMPONENT_ARCHIVE)
114N/ACOMPONENT_PROJECT_URL= http://whalin.com/memcached/
289N/A
289N/Ainclude $(WS_TOP)/make-rules/prep.mk
289N/Ainclude $(WS_TOP)/make-rules/ant.mk
289N/Ainclude $(WS_TOP)/make-rules/ips.mk
176N/A
451N/A# Make sure we remove unneeded pieces from the source (the test dir)
451N/A# and also the existing source files which will be generated anew
451N/A# by the build (java_memcached-release_2.0.1.jar and the javadocs dir).
451N/A# Remove these items during the prep phase, before cloney creates symlinks
398N/A# for these SOURCE_DIR files in $(BUILD_DIR_32), at the beginning of the
451N/A# build phase.
451N/ACOMPONENT_PREP_ACTION += \
398N/A $(RM) -r $(SOURCE_DIR)/$(COMPONENT_SRC).* \
382N/A $(SOURCE_DIR)/src/com/danga/MemCached/test \
538N/A $(SOURCE_DIR)/javadocs ;
382N/A
115N/ACOMPONENT_PRE_BUILD_ACTION += \
428N/A $(CP) Solaris/build.xml $(BUILD_DIR_$(BITS))
398N/A
115N/ACOMPONENT_BUILD_ARGS = -Dver=$(COMPONENT_RELEASE)
115N/ACOMPONENT_BUILD_TARGETS = package
428N/A
451N/A# A new $(COMPONENT_ARCHIVE) file was generated by the
451N/A# build. Unpack it here in the build directory.
115N/A# We will use the extracted javadocs files for the package.
428N/ACOMPONENT_POST_BUILD_ACTION += \
451N/A (cd $(BUILD_DIR_$(BITS)); \
382N/A $(UNPACK) $(UNPACK_ARGS) $(COMPONENT_ARCHIVE); \
382N/A $(CP) -r $(COMPONENT_SRC)/javadocs . )
451N/A
382N/A# Nothing is installed into the proto area.
114N/A# All files in the package will come from the build directory.
114N/APKG_PROTO_DIRS += $(BUILD_DIR_$(BITS))
114N/A
398N/A# common targets
114N/A
114N/Abuild: $(BUILD_32)
451N/A
451N/A# Nothing needed for install; all files are generated
428N/A# during the build.
428N/Ainstall: build
382N/A
382N/Atest: $(NO_TESTS)
382N/A
382N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
382N/A
451N/Ainclude $(WS_TOP)/make-rules/depend.mk
114N/A