kubo/cmd/ipfs/Makefile
Caio Alonso e05f2d3724 adds the option to see the current git commit with ipfs version --commit
License: MIT
Signed-off-by: Caio Alonso <caio@caioalonso.com>
2015-10-17 19:48:39 -03:00

10 lines
194 B
Makefile

all: install
commit = `git rev-parse --short HEAD`
ldflags = "-X "github.com/ipfs/go-ipfs/repo/config".CurrentCommit=$(commit)"
build:
go build -ldflags=$(ldflags)
install: build
go install