Permalink
Switch branches/tags
search1.3.0-release search1.2.0-release release-4.0.1 release-4.0.0 release-3.12.0 release-3.11.0 release-3.10.0 release-3.9.0 release-3.8.1 release-3.8.0 release-3.7.1 release-3.7.0 release-3.6.0 release-3.5.0 release-3.0.0 release-2.5.2 release-2.5.1 release-2.5.0 release-2.4.0 release-2.3.0 release-2.2.0 release-2.1.0 release-2.0.1 release-2.0.0-beta release-1.2.0 release-1.1.0 release-1.0.1 release-1.0 release-0.9.1 hue2-compat cdh5.12.0-release cdh5.11.1-release cdh5.11.0-release cdh5.10.2-release cdh5.10.1-release cdh5.10.0-release cdh5.9.3-release cdh5.9.2-release cdh5.9.1-release cdh5.9.0-release cdh5.8.5-release cdh5.8.4-release cdh5.8.3-release cdh5.8.2-release cdh5.8.0-release cdh5.7.6-release cdh5.7.5-release cdh5.7.4-release cdh5.7.3-release cdh5.7.2-release cdh5.7.1-release cdh5.7.0-release cdh5.6.1-release cdh5.6.0-release cdh5.5.6-release cdh5.5.5-release cdh5.5.4-release cdh5.5.2-release cdh5.5.1-release cdh5.5.0-release cdh5.4.11-release cdh5.4.10-release cdh5.4.9-release cdh5.4.8-release cdh5.4.7-release cdh5.4.5-release cdh5.4.4-release cdh5.4.3-release cdh5.4.2-release cdh5.4.1-release cdh5.4.0-release cdh5.3.10-release cdh5.3.9-release cdh5.3.8-release cdh5.3.6-release cdh5.3.5-release cdh5.3.4-release cdh5.3.3-release cdh5.3.2-release cdh5.3.1-release cdh5.3.0-release cdh5.2.6-release cdh5.2.5-release cdh5.2.4-release cdh5.2.3-release cdh5.2.2-release cdh5.2.1-release cdh5.2.0-release cdh5.1.5-release cdh5.1.4-release cdh5.1.3-release cdh5.1.2-release cdh5.1.0-release cdh5.0.6-release cdh5.0.5-release cdh5.0.4-release cdh5.0.3-release cdh5.0.2-release cdh5.0.1-release cdh5.0.0b2-release
Nothing to show
Find file
ae333e4 Jun 28, 2010
82 lines (65 sloc) 2.25 KB
#
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#
# The including file must define:
# ROOT - The root of the repository
# and should probably define:
# SYS_PYTHON - The system python executable
#
include $(ROOT)/Makefile.vars
VERBOSE ?= 0 # Set to 1 for a more verbose build process
PROD_NAME := hue-$(DESKTOP_VERSION)
# Locations of various source directory
APPS_DIR := $(ROOT)/apps
DESKTOP_DIR := $(ROOT)/desktop
CONF_DIR := $(DESKTOP_DIR)/conf
TOOLS_DIR := $(ROOT)/tools
SCRIPTS_DIR := $(ROOT)/tools/scripts
# TODO moveme
DESKTOP_DB=$(DESKTOP_DIR)/desktop.db
# Locations of various build output directories
#BDIST_DIR := $(BLD_DIR)/bdist
#BLD_DIR_EXT := $(BLD_DIR)/ext
BLD_DIR_RELEASE := $(BLD_DIR)/release
BLD_DIR_PROD := $(BLD_DIR_RELEASE)/prod/$(PROD_NAME)
BLD_DIR_PROD_TGZ := $(BLD_DIR_PROD).tgz
BLD_DIR_WEB := $(BLD_DIR_RELEASE)/web
BLD_DIR_DOC := $(BLD_DIR)/docs
# Installation directory
PREFIX ?= /usr/local
INSTALL_DIR ?= $(PREFIX)/hue
INSTALL_APPS_DIR ?= $(INSTALL_DIR)/desktop/apps
ifeq ($(INSTALL_DIR),$(patsubst /%,%,$(INSTALL_DIR)))
$(error "INSTALL_DIR $(INSTALL_DIR) must be an absolute path:")
endif
# Various commands
APP_REG := $(ENV_PYTHON) $(TOOLS_DIR)/app_reg/app_reg.py
VIRTUAL_BOOTSTRAP := $(TOOLS_DIR)/virtual-bootstrap/virtual-bootstrap.py
# <<<< DEV ONLY
STRIP_DEV = sed -e '/<<<< DEV ONLY/,/.*END DEV ONLY >>>>$$/D' $(1) > $(2)
# END DEV ONLY >>>>
# Verbosity control
ifeq ($(VERBOSE),1)
ANT_OPTS = -v
SETUPTOOLS_OPTS = -vv
VIRTUALENV_OPTS = -vv
else
ANT_OPTS =
SETUPTOOLS_OPTS = -qq
VIRTUALENV_OPTS = -qq
endif