[Makefile] Allow specifying VERSION as an env var

This makes specifying the VERSION when building native operating system packages require less hacks.

Refs: #811
This commit is contained in:
Jeff Schroeder 2017-02-23 12:23:33 -06:00 committed by GitHub
parent af0d9cebd1
commit 4630f69f17

View file

@ -3,7 +3,7 @@ ORG_PATH=github.com/coreos
REPO_PATH=$(ORG_PATH)/$(PROJ)
export PATH := $(PWD)/bin:$(PATH)
VERSION=$(shell ./scripts/git-version)
VERSION ?= $(shell ./scripts/git-version)
DOCKER_REPO=quay.io/coreos/dex
DOCKER_IMAGE=$(DOCKER_REPO):$(VERSION)