Makefile revision 4194
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# CDDL HEADER START
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# The contents of this file are subject to the terms of the
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Common Development and Distribution License (the "License").
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# You may not use this file except in compliance with the License.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# See the License for the specific language governing permissions
0662ed52e814f8f08ef0e09956413a792584eddffuankg# and limitations under the License.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# When distributing Covered Code, include this CDDL HEADER in each
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# If applicable, add the following below this CDDL HEADER, with the
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# fields enclosed by brackets "[]" replaced with your own identifying
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# information: Portions Copyright [yyyy] [name of copyright owner]
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# CDDL HEADER END
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes sha256:f639cdb8fc7fd26725d689d42c426f09bbd5a77554910800b1315f182879558e
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCOMPONENT_ARCHIVE_URL= http://launchpad.net/$(COMPONENT_NAME)/$(COMPONENT_CODENAME)/$(COMPONENT_VERSION)/+download/$(COMPONENT_ARCHIVE)
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# Starting with Juno, Horizon depends on a number of XStatic modules
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# to deliver the required JavaScript modules. This delivery method
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# may be changing in future releases, so the XStatic modules for now
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# are built as part of Horizon rather than being stand alone
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# XStatic itself is only used during the build process and so while it
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# is downloaded and installed in the proto area, none of its
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# components are delivered in the Horizon package itself.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes sha256:0ec93d7c66ebb9e0d31b664753437dc8634cb66e13310cb47c9eb1e0bc66d726
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCOMPONENT_SRC_2 = XStatic-Angular-$(VERSION_ANGULAR)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes sha256:7cad216b226399cbe8d2909ed5b9f28d724907b9c9e1e078e6e25d320a3d5dd7
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCOMPONENT_SRC_3 = XStatic-Bootstrap-Datepicker-$(VERSION_BOOTSTRAP_DP)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes sha256:9edc9b77501001fcee9fbf4bf0a722c263efd928ef928b40081a8269fdd9a944
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesPKG_MACROS += VERSION_BOOTSTRAP_DP=$(VERSION_BOOTSTRAP_DP)
0662ed52e814f8f08ef0e09956413a792584eddffuankgCOMPONENT_SRC_4 = XStatic-Bootstrap-SCSS-$(VERSION_BOOTSTRAP_SCSS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes sha256:7e9858737e2e6aac921ec7a3fca627e522901c3061611e154ebc0b8a892c7018
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesPKG_MACROS += VERSION_BOOTSTRAP_SCSS=$(VERSION_BOOTSTRAP_SCSS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes sha256:46fe521f8dad99f5e20f6702180510c37b81d11f1d78119d308fcec31381f90e
0662ed52e814f8f08ef0e09956413a792584eddffuankgCOMPONENT_SRC_6 = XStatic-Font-Awesome-$(VERSION_FONT_AWESOME)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes sha256:b7fdbf1ed316f3a207eeb9ee1c052820e55b4e31d247d81c8ea059e21f555a73
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesPKG_MACROS += VERSION_FONT_AWESOME=$(VERSION_FONT_AWESOME)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes sha256:5941bc7fb2a09916b8837848e6fc2a13b2dfc271811e9b522c61e1337d5fc2bd
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes sha256:83416a6bb86e8534858c4d1ddca45e881c87639da6f78000c28c3a193fe91305
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCOMPONENT_SRC_9 = XStatic-JQuery-Migrate-$(VERSION_JQUERY_MIGRATE)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes sha256:e2959b3df49afdddb00d36b74cca727a91b994b9f4edb993d7264731a750900e
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesPKG_MACROS += VERSION_JQUERY_MIGRATE=$(VERSION_JQUERY_MIGRATE)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCOMPONENT_SRC_10 = XStatic-jquery-ui-$(VERSION_JQUERY_UI)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes sha256:099b1836eb0d91b8dc98f5b8a6b856a2631d43af0d47f33ef90ee72ed37bda58
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesPKG_MACROS += VERSION_JQUERY_UI=$(VERSION_JQUERY_UI)
cf7ca2f9eaa6523fefcccba4287b91637391fb51fuankgCOMPONENT_SRC_11 = XStatic-JQuery.quicksearch-$(VERSION_JQUERY_QS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes sha256:1271571b420417add56c274fd935e81bfc79e0d54a03559d6ba5ef369f358477
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesPKG_MACROS += VERSION_JQUERY_QS=$(VERSION_JQUERY_QS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCOMPONENT_SRC_12 = XStatic-JQuery.TableSorter-$(VERSION_JQUERY_TS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes sha256:3ba24aecd9a3dc71a79dd4096fa5a8a041c3a7b892c61d05e6e46de0605070f0
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesPKG_MACROS += VERSION_JQUERY_TS=$(VERSION_JQUERY_TS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCOMPONENT_SRC_13 = XStatic-JSEncrypt-$(VERSION_JSENCRYPT)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes sha256:5852892afc6f80c7848f4110b6dad190a54aeb908271d67aaeae9d966f4a26b5
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesPKG_MACROS += VERSION_JSENCRYPT=$(VERSION_JSENCRYPT)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCOMPONENT_SRC_14 = XStatic-Rickshaw-$(VERSION_RICKSHAW)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes sha256:147574228757254442700a9eea5150f14acb1224ef0612f896b663ab58406de8
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes sha256:7f46ef0e45e047019ba6eda22c432fb96f681b97bbe7f1749aa9209e07727192
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Since this is an app, and doesn't provide any public library interfaces, we
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# only need to deliver one version. The manifest is parameterized, though.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesPKG_MACROS += COMPONENT_BE_VERSION=$(COMPONENT_BE_VERSION)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesPKG_MACROS += PYV=$(shell echo $(PYTHON_VERSIONS) | tr -d .)
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# Copy the Oracle branding files and Django app customizations into place
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes ($(MKDIR) $(PROTO_PYTHON_LIB)/openstack_dashboard/templates/solaris; \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(PROTO_PYTHON_LIB)/openstack_dashboard/static/dashboard/css; \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(PROTO_PYTHON_LIB)/openstack_dashboard/static/dashboard/img; \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(PROTO_PYTHON_LIB)/openstack_dashboard/templates/solaris; \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(CP) files/overrides.py $(PROTO_PYTHON_LIB)/openstack_dashboard);
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Generate .pyc files for the files in the proto directory
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Collect the JavaScript files and compress the static assets
collectstatic --noinput; \
# Patch openstack_dashboard/settings.py to remove the xstatic imports
# (manage.py) requires the packages be "installed". Rather than
cd $$xs_archive; \
--force \
test: $(NO_TESTS)
clean::
-exec rm -r {} \;
# Packages required by Django's manage.py during the Horizon build