kubo/cmd/ipfs/Makefile
Jakub Sztandera 650eeee7cc
Rework tags and flags passing in Makefile
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-12-06 17:34:07 +01:00

17 lines
277 B
Makefile

COMMIT := $(shell git rev-parse --short HEAD)
GOFLAGS += -ldflags="-X "github.com/ipfs/go-ipfs/repo/config".CurrentCommit=$(COMMIT)"
all: install
install:
go install $(GOFLAGS)
build:
go build -i $(GOFLAGS)
clean:
go clean $(GOFLAGS)
uninstall:
go clean -i $(GOFLAGS)