Merge pull request #235 from ncdc/makefile-pass-version-through

Pass VERSION all the way down during 'make release'
This commit is contained in:
Nolan Brubaker
2017-12-04 11:55:18 -05:00
committed by GitHub

View File

@@ -81,7 +81,7 @@ build: _output/bin/$(GOOS)/$(GOARCH)/$(BIN)
_output/bin/$(GOOS)/$(GOARCH)/$(BIN): build-dirs _output/bin/$(GOOS)/$(GOARCH)/$(BIN): build-dirs
@echo "building: $@" @echo "building: $@"
@$(MAKE) shell CMD="-c '\ $(MAKE) shell CMD="-c '\
GOOS=$(GOOS) \ GOOS=$(GOOS) \
GOARCH=$(GOARCH) \ GOARCH=$(GOARCH) \
VERSION=$(VERSION) \ VERSION=$(VERSION) \
@@ -156,7 +156,7 @@ checksum:
all-tar-bin: $(addprefix tar-bin-, $(CLI_PLATFORMS)) all-tar-bin: $(addprefix tar-bin-, $(CLI_PLATFORMS))
tar-bin-%: tar-bin-%:
@$(MAKE) ARCH=$* tar-bin $(MAKE) ARCH=$* VERSION=$(VERSION) tar-bin
GIT_DESCRIBE = $(shell git describe --tags --always --dirty) GIT_DESCRIBE = $(shell git describe --tags --always --dirty)
tar-bin: build tar-bin: build