Makefile revision 2900
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# CDDL HEADER START
0b1f1952f4a1c8ddb90dc2dfcab30669903c6e8eBrian Wellington#
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff# The contents of this file are subject to the terms of the
866d106459313499d0ca7bfccb4b2d23d5e4377cDavid Lawrence# Common Development and Distribution License (the "License").
866d106459313499d0ca7bfccb4b2d23d5e4377cDavid Lawrence# You may not use this file except in compliance with the License.
866d106459313499d0ca7bfccb4b2d23d5e4377cDavid Lawrence#
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff# or http://www.opensolaris.org/os/licensing.
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff# See the License for the specific language governing permissions
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff# and limitations under the License.
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff#
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff# When distributing Covered Code, include this CDDL HEADER in each
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff# If applicable, add the following below this CDDL HEADER, with the
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff# fields enclosed by brackets "[]" replaced with your own identifying
c132e9113c1587bc9a684cb0ac800fa7a26b91aaMark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
c132e9113c1587bc9a684cb0ac800fa7a26b91aaMark Andrews#
c132e9113c1587bc9a684cb0ac800fa7a26b91aaMark Andrews# CDDL HEADER END
c132e9113c1587bc9a684cb0ac800fa7a26b91aaMark Andrews#
c132e9113c1587bc9a684cb0ac800fa7a26b91aaMark Andrews
c132e9113c1587bc9a684cb0ac800fa7a26b91aaMark Andrews#
c132e9113c1587bc9a684cb0ac800fa7a26b91aaMark Andrews# Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
c132e9113c1587bc9a684cb0ac800fa7a26b91aaMark Andrews#
c132e9113c1587bc9a684cb0ac800fa7a26b91aaMark Andrewsinclude ../../../make-rules/shared-macros.mk
c132e9113c1587bc9a684cb0ac800fa7a26b91aaMark Andrews
c132e9113c1587bc9a684cb0ac800fa7a26b91aaMark AndrewsCOMPONENT_NAME= horizon
c132e9113c1587bc9a684cb0ac800fa7a26b91aaMark AndrewsCOMPONENT_CODENAME= havana
c132e9113c1587bc9a684cb0ac800fa7a26b91aaMark AndrewsCOMPONENT_VERSION= 2013.2.3
c132e9113c1587bc9a684cb0ac800fa7a26b91aaMark AndrewsCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
c132e9113c1587bc9a684cb0ac800fa7a26b91aaMark AndrewsCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
6a976322f097bce06ef164f9bf99e51c5df1827bMichael GraffCOMPONENT_ARCHIVE_HASH= \
c132e9113c1587bc9a684cb0ac800fa7a26b91aaMark Andrews sha256:de9b87ee62d8b28792399be0fc867ba99618eaaad289cf9842b5c7084e12620f
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleyCOMPONENT_ARCHIVE_URL= http://launchpad.net/$(COMPONENT_NAME)/$(COMPONENT_CODENAME)/$(COMPONENT_VERSION)/+download/$(COMPONENT_ARCHIVE)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonCOMPONENT_PROJECT_URL= http://www.openstack.org/
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonCOMPONENT_BUGDB= utility/horizon
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonIPS_COMPONENT_VERSION= 0.$(COMPONENT_VERSION)
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyinclude $(WS_TOP)/make-rules/prep.mk
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyinclude $(WS_TOP)/make-rules/setup.py.mk
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyinclude $(WS_TOP)/make-rules/ips.mk
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleyASLR_MODE = $(ASLR_NOT_APPLICABLE)
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Since this is an app, and doesn't provide any public library interfaces, we
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# only need to deliver one version. The manifest is parameterized, though.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleyPYTHON_VERSIONS= 2.6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleyPKG_MACROS += PYVER=$(PYTHON_VERSIONS)
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleyCOMPONENT_POST_INSTALL_ACTION += \
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ($(MKDIR) $(PROTO_DIR)/usr/lib/python2.6/vendor-packages/openstack_dashboard/static/solaris/css; \
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley $(CP) files/branding/css/solaris.css $(PROTO_DIR)/usr/lib/python2.6/vendor-packages/openstack_dashboard/static/solaris/css; \
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley $(MKDIR) $(PROTO_DIR)/usr/lib/python2.6/vendor-packages/openstack_dashboard/static/solaris/img; \
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley $(CP) files/branding/img/* $(PROTO_DIR)/usr/lib/python2.6/vendor-packages/openstack_dashboard/static/solaris/img; \
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley $(MKDIR) $(PROTO_DIR)/usr/lib/python2.6/vendor-packages/openstack_dashboard/static/solaris/theme; \
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley $(CP) files/branding/theme/_stylesheets.html $(PROTO_DIR)/usr/lib/python2.6/vendor-packages/openstack_dashboard/static/solaris/theme; \
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley $(CP) files/overrides.py $(PROTO_DIR)/usr/lib/python2.6/vendor-packages/openstack_dashboard); \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington $(PYTHON) -m compileall $(PROTO_DIR)/$(PYTHON_VENDOR_PACKAGES)
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# common targets
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleybuild: $(BUILD_NO_ARCH)
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtoninstall: $(INSTALL_NO_ARCH)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtontest: $(NO_TESTS)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtoninclude $(WS_TOP)/make-rules/depend.mk
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington