Makefile revision 4623
52ea316008e2581c8113441c9c341e5c65225f6anilgun#
52ea316008e2581c8113441c9c341e5c65225f6anilgun# CDDL HEADER START
52ea316008e2581c8113441c9c341e5c65225f6anilgun#
52ea316008e2581c8113441c9c341e5c65225f6anilgun# The contents of this file are subject to the terms of the
52ea316008e2581c8113441c9c341e5c65225f6anilgun# Common Development and Distribution License (the "License").
52ea316008e2581c8113441c9c341e5c65225f6anilgun# You may not use this file except in compliance with the License.
52ea316008e2581c8113441c9c341e5c65225f6anilgun#
52ea316008e2581c8113441c9c341e5c65225f6anilgun# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
52ea316008e2581c8113441c9c341e5c65225f6anilgun# or http://www.opensolaris.org/os/licensing.
52ea316008e2581c8113441c9c341e5c65225f6anilgun# See the License for the specific language governing permissions
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen# and limitations under the License.
2e545ce2450a9953665f701bb05350f0d3f26275nd#
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen# When distributing Covered Code, include this CDDL HEADER in each
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
52ea316008e2581c8113441c9c341e5c65225f6anilgun# If applicable, add the following below this CDDL HEADER, with the
52ea316008e2581c8113441c9c341e5c65225f6anilgun# fields enclosed by brackets "[]" replaced with your own identifying
af33a4994ae2ff15bc67d19ff1a7feb906745bf8rbowen# information: Portions Copyright [yyyy] [name of copyright owner]
3f08db06526d6901aa08c110b5bc7dde6bc39905nd#
52ea316008e2581c8113441c9c341e5c65225f6anilgun# CDDL HEADER END
52ea316008e2581c8113441c9c341e5c65225f6anilgun#
52ea316008e2581c8113441c9c341e5c65225f6anilgun
3f08db06526d6901aa08c110b5bc7dde6bc39905nd#
52ea316008e2581c8113441c9c341e5c65225f6anilgun# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
52ea316008e2581c8113441c9c341e5c65225f6anilgun#
52ea316008e2581c8113441c9c341e5c65225f6anilgun
52ea316008e2581c8113441c9c341e5c65225f6anilguninclude ../../../make-rules/shared-macros.mk
52ea316008e2581c8113441c9c341e5c65225f6anilgun
f086b4b402fa9a2fefc7dda85de2a3cc1cd0a654rjungCOMPONENT_NAME= ironic
52ea316008e2581c8113441c9c341e5c65225f6anilgunCOMPONENT_CODENAME= juno
51b60896224b408a35684bd6ec0fafe5e4abe322rbowenCOMPONENT_VERSION= 2014.2.1
52ea316008e2581c8113441c9c341e5c65225f6anilgunCOMPONENT_BE_VERSION= 2014.2
52ea316008e2581c8113441c9c341e5c65225f6anilgunCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
52ea316008e2581c8113441c9c341e5c65225f6anilgunCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
52ea316008e2581c8113441c9c341e5c65225f6anilgunCOMPONENT_ARCHIVE_HASH= \
52ea316008e2581c8113441c9c341e5c65225f6anilgun sha256:9dae1e5e030741382e75f6da9ec34af1b8e8d50940d158fb14f4d427a01c0bff
52ea316008e2581c8113441c9c341e5c65225f6anilgunCOMPONENT_ARCHIVE_URL= http://launchpad.net/$(COMPONENT_NAME)/$(COMPONENT_CODENAME)/$(COMPONENT_VERSION)/+download/$(COMPONENT_ARCHIVE)
52ea316008e2581c8113441c9c341e5c65225f6anilgunCOMPONENT_PROJECT_URL= http://www.openstack.org/
52ea316008e2581c8113441c9c341e5c65225f6anilgunCOMPONENT_BUGDB= service/ironic
52ea316008e2581c8113441c9c341e5c65225f6anilgunIPS_COMPONENT_VERSION= 0.$(COMPONENT_VERSION)
52ea316008e2581c8113441c9c341e5c65225f6anilgun
52ea316008e2581c8113441c9c341e5c65225f6anilgunTPNO= 22203
52ea316008e2581c8113441c9c341e5c65225f6anilgun
52ea316008e2581c8113441c9c341e5c65225f6anilguninclude $(WS_MAKE_RULES)/prep.mk
52ea316008e2581c8113441c9c341e5c65225f6anilguninclude $(WS_MAKE_RULES)/setup.py.mk
52ea316008e2581c8113441c9c341e5c65225f6anilguninclude $(WS_MAKE_RULES)/ips.mk
52ea316008e2581c8113441c9c341e5c65225f6anilgun
52ea316008e2581c8113441c9c341e5c65225f6anilgunASLR_MODE = $(ASLR_NOT_APPLICABLE)
52ea316008e2581c8113441c9c341e5c65225f6anilgun
52ea316008e2581c8113441c9c341e5c65225f6anilgun# Since this is an app, and doesn't provide any public library interfaces, we
52ea316008e2581c8113441c9c341e5c65225f6anilgun# only need to deliver one version. The manifest is parameterized, though.
52ea316008e2581c8113441c9c341e5c65225f6anilgunPYTHON_VERSIONS= 2.7
52ea316008e2581c8113441c9c341e5c65225f6anilgun
52ea316008e2581c8113441c9c341e5c65225f6anilgunPKG_MACROS += COMPONENT_BE_VERSION=$(COMPONENT_BE_VERSION)
52ea316008e2581c8113441c9c341e5c65225f6anilgunPKG_MACROS += PYVER=$(PYTHON_VERSIONS)
52ea316008e2581c8113441c9c341e5c65225f6anilgunPKG_MACROS += PYV=$(shell echo $(PYTHON_VERSIONS) | tr -d .)
52ea316008e2581c8113441c9c341e5c65225f6anilgun
52ea316008e2581c8113441c9c341e5c65225f6anilgun#
30471a4650391f57975f60bbb6e4a90be7b284bfhumbedooh# ironic-api and ironic-conductor depend on ironic-db so copy all of the
52ea316008e2581c8113441c9c341e5c65225f6anilgun# service manifests into the proto directory for pkgdepend(1) to find.
52ea316008e2581c8113441c9c341e5c65225f6anilgun#
52ea316008e2581c8113441c9c341e5c65225f6anilgunCOMPONENT_POST_INSTALL_ACTION += \
52ea316008e2581c8113441c9c341e5c65225f6anilgun ($(MKDIR) $(PROTO_DIR)/lib/svc/manifest/application/openstack; \
52ea316008e2581c8113441c9c341e5c65225f6anilgun $(CP) \
52ea316008e2581c8113441c9c341e5c65225f6anilgun files/ironic-api.xml \
52ea316008e2581c8113441c9c341e5c65225f6anilgun files/ironic-conductor.xml \
52ea316008e2581c8113441c9c341e5c65225f6anilgun files/ironic-db.xml \
52ea316008e2581c8113441c9c341e5c65225f6anilgun $(PROTO_DIR)/lib/svc/manifest/application/openstack/; \
52ea316008e2581c8113441c9c341e5c65225f6anilgun $(MKDIR) $(PROTO_DIR)$(PYTHON_LIB)/ironic/drivers/modules; \
52ea316008e2581c8113441c9c341e5c65225f6anilgun $(CP) \
52ea316008e2581c8113441c9c341e5c65225f6anilgun files/drivers/solaris.py \
52ea316008e2581c8113441c9c341e5c65225f6anilgun $(PROTO_DIR)$(PYTHON_LIB)/ironic/drivers/; \
52ea316008e2581c8113441c9c341e5c65225f6anilgun $(CP) \
52ea316008e2581c8113441c9c341e5c65225f6anilgun files/drivers/modules/solaris_ipmitool.py \
52ea316008e2581c8113441c9c341e5c65225f6anilgun $(PROTO_DIR)$(PYTHON_LIB)/ironic/drivers/modules/; \
52ea316008e2581c8113441c9c341e5c65225f6anilgun $(PYTHON) -m compileall $(PROTO_DIR)/$(PYTHON_VENDOR_PACKAGES))
52ea316008e2581c8113441c9c341e5c65225f6anilgun
52ea316008e2581c8113441c9c341e5c65225f6anilgun# common targets
52ea316008e2581c8113441c9c341e5c65225f6anilgunbuild: $(BUILD_NO_ARCH)
52ea316008e2581c8113441c9c341e5c65225f6anilgun
52ea316008e2581c8113441c9c341e5c65225f6anilguninstall: $(INSTALL_NO_ARCH)
52ea316008e2581c8113441c9c341e5c65225f6anilgun
52ea316008e2581c8113441c9c341e5c65225f6anilgun#
52ea316008e2581c8113441c9c341e5c65225f6anilgun# Tests require:
52ea316008e2581c8113441c9c341e5c65225f6anilgun# hacking, coverage>=3.6, disvover, fixtures, oslo.test, psycopg2,
52ea316008e2581c8113441c9c341e5c65225f6anilgun# python-ironicclient, python-subunit, testrepository, testtools,
52ea316008e2581c8113441c9c341e5c65225f6anilgun# sphinx, sphinxcontrib, oslo.sphinx
52ea316008e2581c8113441c9c341e5c65225f6anilgun# Which haven't been integrated yet
52ea316008e2581c8113441c9c341e5c65225f6anilgun#
52ea316008e2581c8113441c9c341e5c65225f6anilguntest: $(NO_TESTS)
52ea316008e2581c8113441c9c341e5c65225f6anilgun
52ea316008e2581c8113441c9c341e5c65225f6anilgun
52ea316008e2581c8113441c9c341e5c65225f6anilgunREQUIRED_PACKAGES += install/installadm
52ea316008e2581c8113441c9c341e5c65225f6anilgunREQUIRED_PACKAGES += shell/ksh93
52ea316008e2581c8113441c9c341e5c65225f6anilgunREQUIRED_PACKAGES += system/core-os
52ea316008e2581c8113441c9c341e5c65225f6anilgunREQUIRED_PACKAGES += system/file-system/uafs
52ea316008e2581c8113441c9c341e5c65225f6anilgunREQUIRED_PACKAGES += system/file-system/uvfs
52ea316008e2581c8113441c9c341e5c65225f6anilgunREQUIRED_PACKAGES += system/management/ipmitool
52ea316008e2581c8113441c9c341e5c65225f6anilgunREQUIRED_PACKAGES += web/curl
52ea316008e2581c8113441c9c341e5c65225f6anilgun