Makefile 230 Bytes
Newer Older
Brian Tiger Chow's avatar
Brian Tiger Chow committed
1
all: install
2
commit = $(shell git rev-parse --short HEAD 2> /dev/null || echo unknown)
3
ldflags = "-X "github.com/ipfs/go-ipfs/repo/config".CurrentCommit=$(commit)"
Brian Tiger Chow's avatar
Brian Tiger Chow committed
4 5

build:
6
	go build -ldflags=$(ldflags)
Brian Tiger Chow's avatar
Brian Tiger Chow committed
7 8 9

install: build
	go install