1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-26 23:53:19 +08:00

makefile fixes

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
This commit is contained in:
Jeromy
2016-02-05 15:50:40 -08:00
parent ffc4831bcc
commit c9b83c506c
2 changed files with 6 additions and 15 deletions

View File

@ -27,10 +27,10 @@ deps: gx
vendor: godep
godep save -r ./...
install: deps
install: build
cd cmd/ipfs && go install -ldflags=$(ldflags)
build:
build: deps
cd cmd/ipfs && go build -i -ldflags=$(ldflags)
nofuse:

View File

@ -1,16 +1,7 @@
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)"
gx:
go get -u github.com/whyrusleeping/gx
go get -u github.com/whyrusleeping/gx-go
build:
cd ../../ && make build
deps: gx
gx --verbose install --global
build: deps
go build -ldflags=$(ldflags)
install: build
go install
install:
cd ../../ && make install