Makefile revision 5445
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
#
COMPONENT_BE_VERSION= 2015.1
COMPONENT_ARCHIVE_URL= http://launchpad.net/$(COMPONENT_NAME)/$(COMPONENT_CODENAME)/$(COMPONENT_VERSION)/+download/$(COMPONENT_ARCHIVE)
TPNO_HORIZON= 25787
TPNO_ANGULAR= 21640
TPNO_ANGULAR_BOOTSTRAP= 23154
TPNO_ANGULAR_LR_DND= 23155
TPNO_BOOTSTRAP_DP= 20670
TPNO_BOOTSTRAP_SCSS= 20671
TPNO_D3= 20822
TPNO_FONT_AWESOME= 25763
TPNO_HOGAN= 21827
TPNO_JQUERY= 21642
TPNO_JQUERY_MIGRATE= 13315
TPNO_JQUERY_UI= 18416
TPNO_JQUERY_QUICKSEARCH=20396
TPNO_JQUERY_TABLESORTER=20824
TPNO_JSENCRYPT= 20397
TPNO_MAGIC_SEARCH= 25994
TPNO_RICKSHAW= 20673
TPNO_SMART_TABLE= 23157
TPNO_SPIN= 20674
TPNO_TERM_JS= 23158
#
# Starting with Juno, Horizon depends on a number of XStatic modules
# to deliver the required JavaScript modules. This delivery method
# may be changing in future releases, so the XStatic modules for now
# are built as part of Horizon rather than being stand alone
#
# XStatic itself is only used during the build process and so while it
# is downloaded and installed in the proto area, none of its
# components are delivered in the Horizon package itself.
#
COMPONENT_ARCHIVE_URL_1 = $(call pypi_url,1)
COMPONENT_ARCHIVE_URL_2 = $(call pypi_url,2)
COMPONENT_ARCHIVE_URL_3 = $(call pypi_url,3)
COMPONENT_ARCHIVE_URL_4 = $(call pypi_url,4)
COMPONENT_ARCHIVE_URL_5 = $(call pypi_url,5)
COMPONENT_ARCHIVE_URL_6 = $(call pypi_url,6)
COMPONENT_ARCHIVE_URL_7 = $(call pypi_url,7)
COMPONENT_ARCHIVE_URL_8 = $(call pypi_url,8)
COMPONENT_ARCHIVE_URL_9 = $(call pypi_url,9)
COMPONENT_ARCHIVE_URL_10 = $(call pypi_url,10)
COMPONENT_ARCHIVE_URL_11 = $(call pypi_url,11)
COMPONENT_ARCHIVE_URL_12 = $(call pypi_url,12)
COMPONENT_ARCHIVE_URL_13 = $(call pypi_url,13)
COMPONENT_ARCHIVE_URL_14 = $(call pypi_url,14)
COMPONENT_ARCHIVE_URL_15 = $(call pypi_url,15)
COMPONENT_ARCHIVE_URL_16 = $(call pypi_url,16)
COMPONENT_ARCHIVE_URL_17 = $(call pypi_url,17)
COMPONENT_ARCHIVE_URL_18 = $(call pypi_url,18)
COMPONENT_ARCHIVE_URL_19 = $(call pypi_url,19)
COMPONENT_ARCHIVE_URL_20 = $(call pypi_url,20)
# 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.
PYTHON_VERSIONS= 2.7
# 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" >> \
collectstatic --noinput; \
# Patch openstack_dashboard/settings.py to remove the xstatic imports
# 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.
#
cd $$xs_archive; \
--force \
cd ../; \
done
# common targets
build: $(BUILD_NO_ARCH)
# make sure all of the xstatic modules are built
test: $(NO_TESTS)
clean::
-exec rm -r {} \;
# Includes packages required by Django's manage.py during the Horizon build