2014-05-27 10:07:42 +00:00
|
|
|
#
|
|
|
|
# \brief Common environment
|
|
|
|
# \author Norman Feske
|
|
|
|
# \date 2014-05-27
|
|
|
|
#
|
|
|
|
|
2019-03-18 13:33:49 +00:00
|
|
|
# compound directory where all 3rd-party source codes are installed
|
|
|
|
CONTRIB_DIR ?= $(GENODE_DIR)/contrib
|
|
|
|
|
2014-05-27 10:07:42 +00:00
|
|
|
SHELL := bash
|
|
|
|
VERBOSE ?= @
|
|
|
|
ECHO := echo -e
|
|
|
|
|
2018-09-04 10:03:30 +00:00
|
|
|
# limit destructive git operations (e.g., reset) to local directory
|
|
|
|
GIT := git --git-dir=.git
|
|
|
|
|
2016-02-05 10:28:44 +00:00
|
|
|
BRIGHT_COL ?= \x1b[01;33m
|
|
|
|
DARK_COL ?= \x1b[00;33m
|
|
|
|
DEFAULT_COL ?= \x1b[0m
|
2014-05-27 10:07:42 +00:00
|
|
|
|
2016-02-05 10:28:44 +00:00
|
|
|
MSG_PREFIX_TXT := $(DARK_COL)$(notdir $(PORT:.port=)) $(DEFAULT_COL)
|
|
|
|
MSG_PREFIX := $(ECHO) "$(MSG_PREFIX_TXT)"
|
|
|
|
MSG_DOWNLOAD := $(MSG_PREFIX)"download "
|
|
|
|
MSG_APPLY := $(MSG_PREFIX)"apply "
|
|
|
|
MSG_UPDATE := $(MSG_PREFIX)"update "
|
|
|
|
MSG_INSTALL := $(MSG_PREFIX)"install "
|
|
|
|
MSG_GENERATE := $(MSG_PREFIX)"generate "
|
|
|
|
MSG_EXTRACT := $(MSG_PREFIX)"extract "
|
|
|
|
MSG_GIT := $(MSG_PREFIX_TXT)git
|
2014-05-27 10:07:42 +00:00
|
|
|
|
2018-05-15 13:37:24 +00:00
|
|
|
#
|
|
|
|
# Utility to check if a tool is installed
|
|
|
|
#
|
2021-11-08 20:15:54 +00:00
|
|
|
check_tool = $(if $(shell command -v $(1)),,$(error Need to have '$(1)' installed.))
|