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:
4
Makefile
4
Makefile
@ -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:
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user