-
Notifications
You must be signed in to change notification settings - Fork 6
/
common.mk
27 lines (20 loc) · 900 Bytes
/
common.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
SHELL=/bin/bash
ifndef DSS_HOME
$(error Please run "source environment" in the data-store repo root directory before running make commands)
endif
ifeq ($(shell which jq),)
$(error Please install jq using "apt-get install jq" or "brew install jq")
endif
ifeq ($(shell which sponge),)
$(error Please install sponge using "apt-get install moreutils" or "brew install moreutils")
endif
ifeq ($(shell which envsubst),)
$(error Please install envsubst using "apt-get install gettext" or "brew install gettext; brew link gettext")
endif
ifeq ($(findstring Python 3.6, $(shell python --version 2>&1)),)
$(error Please run make commands from a Python 3.6 virtualenv)
endif
ifeq ($(findstring terraform, $(shell which terraform 2>&1)),)
else ifeq ($(findstring Terraform v0.12.16, $(shell terraform --version 2>&1)),)
$(error You must use Terraform v0.12.16, please check your terraform version.)
endif