Merge pull request #236 from ncdc/makefile-pass-version-through
Pass VERSION all the way down during 'make release'pull/253/head
commit
6d5eeb21f5
4
Makefile
4
Makefile
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue