github.com/ahjdzx/deis@v1.1.1/includes.mk (about)

     1  ifndef DEIS_NUM_INSTANCES
     2    DEIS_NUM_INSTANCES = 3
     3  endif
     4  
     5  define echo_cyan
     6    @echo "\033[0;36m$(subst ",,$(1))\033[0m"
     7  endef
     8  
     9  define echo_yellow
    10    @echo "\033[0;33m$(subst ",,$(1))\033[0m"
    11  endef
    12  
    13  SELF_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
    14  DOCKER_HOST = $(shell echo $$DOCKER_HOST)
    15  REGISTRY = $(shell echo $$DEV_REGISTRY)
    16  GIT_SHA = $(shell git rev-parse --short HEAD)
    17  ifndef BUILD_TAG
    18    BUILD_TAG = git-$(GIT_SHA)
    19  endif
    20  ifndef S3_BUCKET
    21    S3_BUCKET = deis-updates
    22  endif
    23  IMAGE_PREFIX := deis/
    24  
    25  check-docker:
    26  	@if [ -z $$(which docker) ]; then \
    27  	  echo "Missing \`docker\` client which is required for development"; \
    28  	  exit 2; \
    29  	fi
    30  
    31  check-registry:
    32  	@if [ -z "$$DEV_REGISTRY" ]; then \
    33  	  echo "DEV_REGISTRY is not exported, try:  make dev-registry"; \
    34  	exit 2; \
    35  	fi
    36  
    37  check-deisctl:
    38  	@if [ -z $$(which deisctl) ]; then \
    39  	  echo "Missing \`deisctl\` utility, please install from https://github.com/deis/deis"; \
    40  	fi