2015-09-11 14:56:17 -07:00
|
|
|
# Project name, used to name the binaries
|
|
|
|
|
PKG_NAME := docker-machine
|
|
|
|
|
|
|
|
|
|
# If true, disable optimizations and does NOT strip the binary
|
|
|
|
|
DEBUG ?=
|
|
|
|
|
# If true, "build" will produce a static binary (cross compile always produce static build regardless)
|
|
|
|
|
STATIC ?=
|
2016-10-12 21:54:47 +02:00
|
|
|
# If true, turn on verbose output for build
|
2015-09-11 14:56:17 -07:00
|
|
|
VERBOSE ?=
|
|
|
|
|
# Build tags
|
|
|
|
|
BUILDTAGS ?=
|
2015-10-07 13:38:55 -07:00
|
|
|
# Adjust number of parallel builds (XXX not used)
|
2015-09-11 14:56:17 -07:00
|
|
|
PARALLEL ?= -1
|
|
|
|
|
# Coverage default directory
|
|
|
|
|
COVERAGE_DIR ?= cover
|
|
|
|
|
# Whether to perform targets inside a docker container, or natively on the host
|
|
|
|
|
USE_CONTAINER ?=
|
|
|
|
|
|
2016-10-12 21:54:47 +02:00
|
|
|
# List of cross compilation targets
|
2015-09-11 14:56:17 -07:00
|
|
|
ifeq ($(TARGET_OS),)
|
2015-10-07 13:38:55 -07:00
|
|
|
TARGET_OS := darwin linux windows
|
2015-09-11 14:56:17 -07:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
ifeq ($(TARGET_ARCH),)
|
2017-01-21 19:47:07 +01:00
|
|
|
TARGET_ARCH := amd64 arm arm64 386
|
2015-09-11 14:56:17 -07:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
# Output prefix, defaults to local directory if not specified
|
|
|
|
|
ifeq ($(PREFIX),)
|
|
|
|
|
PREFIX := $(shell pwd)
|
|
|
|
|
endif
|