Makefile.vars.priv 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. #
  2. # Licensed to Cloudera, Inc. under one
  3. # or more contributor license agreements. See the NOTICE file
  4. # distributed with this work for additional information
  5. # regarding copyright ownership. Cloudera, Inc. licenses this file
  6. # to you under the Apache License, Version 2.0 (the
  7. # "License"); you may not use this file except in compliance
  8. # with the License. You may obtain a copy of the License at
  9. #
  10. # http://www.apache.org/licenses/LICENSE-2.0
  11. #
  12. # Unless required by applicable law or agreed to in writing, software
  13. # distributed under the License is distributed on an "AS IS" BASIS,
  14. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. # See the License for the specific language governing permissions and
  16. # limitations under the License.
  17. #
  18. #
  19. # The including file must define:
  20. # ROOT - The root of the repository
  21. # and should probably define:
  22. # SYS_PYTHON - The system python executable
  23. #
  24. include $(ROOT)/Makefile.vars
  25. VERBOSE ?= 0 # Set to 1 for a more verbose build process
  26. PROD_NAME := hue-$(DESKTOP_VERSION)
  27. # Locations of various source directory
  28. APPS_DIR := $(ROOT)/apps
  29. DESKTOP_DIR := $(ROOT)/desktop
  30. CONF_DIR := $(DESKTOP_DIR)/conf
  31. TOOLS_DIR := $(ROOT)/tools
  32. SCRIPTS_DIR := $(ROOT)/tools/scripts
  33. # TODO moveme
  34. DESKTOP_DB=$(DESKTOP_DIR)/desktop.db
  35. # Locations of various build output directories
  36. #BDIST_DIR := $(BLD_DIR)/bdist
  37. #BLD_DIR_EXT := $(BLD_DIR)/ext
  38. BLD_DIR_RELEASE := $(BLD_DIR)/release
  39. BLD_DIR_PROD := $(BLD_DIR_RELEASE)/prod/$(PROD_NAME)
  40. BLD_DIR_PROD_TGZ := $(BLD_DIR_PROD).tgz
  41. BLD_DIR_WEB := $(BLD_DIR_RELEASE)/web
  42. BLD_DIR_DOC := $(BLD_DIR)/docs
  43. # Installation directory
  44. PREFIX ?= /usr/local
  45. INSTALL_DIR ?= $(PREFIX)/hue
  46. INSTALL_APPS_DIR ?= $(INSTALL_DIR)/desktop/apps
  47. ifeq ($(INSTALL_DIR),$(patsubst /%,%,$(INSTALL_DIR)))
  48. $(error "INSTALL_DIR $(INSTALL_DIR) must be an absolute path:")
  49. endif
  50. # Various commands
  51. APP_REG := $(ENV_PYTHON) $(TOOLS_DIR)/app_reg/app_reg.py
  52. VIRTUAL_BOOTSTRAP := $(TOOLS_DIR)/virtual-bootstrap/virtual-bootstrap.py
  53. # <<<< DEV ONLY
  54. STRIP_DEV = sed -e '/<<<< DEV ONLY/,/.*END DEV ONLY >>>>$$/D' $(1) > $(2)
  55. # END DEV ONLY >>>>
  56. # Verbosity control
  57. ifeq ($(VERBOSE),1)
  58. ANT_OPTS = -v
  59. SETUPTOOLS_OPTS = -vv
  60. VIRTUALENV_OPTS = -vv
  61. else
  62. ANT_OPTS =
  63. SETUPTOOLS_OPTS = -qq
  64. VIRTUALENV_OPTS = -qq
  65. endif