Makefile revision 127
99N/A#
99N/A# CDDL HEADER START
99N/A#
99N/A# The contents of this file are subject to the terms of the
99N/A# Common Development and Distribution License (the "License").
99N/A# You may not use this file except in compliance with the License.
99N/A#
99N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
99N/A# or http://www.opensolaris.org/os/licensing.
99N/A# See the License for the specific language governing permissions
99N/A# and limitations under the License.
99N/A#
99N/A# When distributing Covered Code, include this CDDL HEADER in each
99N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
99N/A# If applicable, add the following below this CDDL HEADER, with the
99N/A# fields enclosed by brackets "[]" replaced with your own identifying
99N/A# information: Portions Copyright [yyyy] [name of copyright owner]
99N/A#
99N/A# CDDL HEADER END
99N/A#
99N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
99N/A#
127N/Ainclude ../../make-rules/shared-macros.mk
99N/A
99N/APATH=/usr/bin:/usr/gnu/bin:/usr/sbin
99N/A
99N/ACOMPONENT_NAME= mercurial
99N/ACOMPONENT_VERSION= 1.3.1
99N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
99N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
99N/ACOMPONENT_ARCHIVE_HASH= sha1:a9537fab7c7ead501a6414d1900f46e0ae3e48b8
99N/ACOMPONENT_ARCHIVE_URL= http://www.selenic.com/mercurial/release/$(COMPONENT_ARCHIVE)
99N/A
99N/Ainclude $(WS_TOP)/make-rules/prep.mk
99N/Ainclude $(WS_TOP)/make-rules/setup.py.mk
99N/Ainclude $(WS_TOP)/make-rules/ips.mk
99N/A
99N/APYTHON_ENV += CC="$(CC)"
99N/APYTHON_ENV += CFLAGS="-m$(BITS) $(CFLAGS)"
99N/A
99N/APKG_PROTO_DIRS += $(COMPONENT_SRC)/contrib
99N/APKG_PROTO_DIRS += $(COMPONENT_SRC)/doc
99N/APUBLISH_TRANSFORMS += demo-transform
99N/A
99N/A# common targets
99N/Abuild: $(BUILD_32)
99N/A
99N/Ainstall: $(INSTALL_32)
99N/A (cd $(COMPONENT_SRC)/doc ; $(MAKE) INSTALL=$(INSTALL) \
99N/A PREFIX=/usr DESTDIR=$(PROTO_DIR) install)
99N/A
99N/Atest: $(INSTALL_32)
99N/A (cd $(COMPONENT_SRC)/tests ; \
99N/A PYTHONPATH=$(PROTOUSRLIBDIR)/python$(PYTHON_VERSION)/vendor-packages \
99N/A $(PYTHON) ./run-tests.py)
99N/A
99N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
99N/A
99N/Ainclude $(WS_TOP)/make-rules/depend.mk