Makefile revision 5860
2N/A# The contents of this file are subject to the terms of the 2N/A# Common Development and Distribution License (the "License"). 2N/A# You may not use this file except in compliance with the License. 2N/A# See the License for the specific language governing permissions 2N/A# and limitations under the License. 2N/A# When distributing Covered Code, include this CDDL HEADER in each 2N/A# If applicable, add the following below this CDDL HEADER, with the 2N/A# fields enclosed by brackets "[]" replaced with your own identifying 2N/A# information: Portions Copyright [yyyy] [name of copyright owner] 2N/A# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved. 2N/A# Starting with Juno, Horizon depends on a number of XStatic modules 2N/A# to deliver the required JavaScript modules. This delivery method 2N/A# may be changing in future releases, so the XStatic modules for now 2N/A# are built as part of Horizon rather than being stand alone 2N/A# XStatic itself is only used during the build process and so while it 2N/A# is downloaded and installed in the proto area, none of its 2N/A# components are delivered in the Horizon package itself. # Since this is an app, and doesn't provide any public library interfaces, we # only need to deliver one version. The manifest is parameterized, though. # Copy the Oracle branding files and Django app customizations into place # Generate .pyc files for the files in the proto directory # Collect the JavaScript files and compress the static assets echo "WEBROOT = '/horizon/'\nSTATIC_ROOT = 'static'\n" >> \ # and use. This is done after 'gmake prep' because we need the # xstatic imports for static asset collection. # The xstatic target builds each XStatic component alongside Horizon. # This is done because the Django script which collects # the JavaScript libraries and compresses the static assets # (manage.py) requires the packages be "installed". Rather than # forcing a CBE update for any revision of any XStatic module, we use # what's specified above. # This extra work is done at package build time rather than when the # application runs because a) compressing the assets ahead of time # makes things faster and b) this allows the package to be entirely # contained in /usr rather than having a separate spot in /var for the # webservd user to write compressed assets to as they get used. # make sure all of the xstatic modules are built # Includes packages required by Django's manage.py during the Horizon build