kubo/cmd/ipfs/Makefile
Jeromy 6976ca7480 fix makefile failing when not in a git repo
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-10-19 15:39:25 -07:00

10 lines
230 B
Makefile

all: install
commit = $(shell git rev-parse --short HEAD 2> /dev/null || echo unknown)
ldflags = "-X "github.com/ipfs/go-ipfs/repo/config".CurrentCommit=$(commit)"
build:
go build -ldflags=$(ldflags)
install: build
go install