forked from TrueCloudLab/rclone
Make the Makefile build rclone with the correct version number by default
This commit is contained in:
parent
e48d19f895
commit
f7252645ba
1 changed files with 5 additions and 1 deletions
6
Makefile
6
Makefile
|
@ -9,8 +9,12 @@ BETA_URL := http://beta.rclone.org/$(TAG)/
|
|||
# Only needed for Go 1.5
|
||||
export GO15VENDOREXPERIMENT=1
|
||||
|
||||
.PHONY: rclone
|
||||
|
||||
rclone:
|
||||
go install -v
|
||||
touch fs/version.go
|
||||
go install -v --ldflags "-s -X github.com/ncw/rclone/fs.Version=$(TAG)"
|
||||
cp -av `go env GOPATH`/bin/rclone .
|
||||
|
||||
vars:
|
||||
@echo SHELL="'$(SHELL)'"
|
||||
|
|
Loading…
Reference in a new issue