mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-29 17:36:38 +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
|
vendor: godep
|
||||||
godep save -r ./...
|
godep save -r ./...
|
||||||
|
|
||||||
install: deps
|
install: build
|
||||||
cd cmd/ipfs && go install -ldflags=$(ldflags)
|
cd cmd/ipfs && go install -ldflags=$(ldflags)
|
||||||
|
|
||||||
build:
|
build: deps
|
||||||
cd cmd/ipfs && go build -i -ldflags=$(ldflags)
|
cd cmd/ipfs && go build -i -ldflags=$(ldflags)
|
||||||
|
|
||||||
nofuse:
|
nofuse:
|
||||||
|
@ -1,16 +1,7 @@
|
|||||||
all: install
|
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:
|
build:
|
||||||
go get -u github.com/whyrusleeping/gx
|
cd ../../ && make build
|
||||||
go get -u github.com/whyrusleeping/gx-go
|
|
||||||
|
|
||||||
deps: gx
|
install:
|
||||||
gx --verbose install --global
|
cd ../../ && make install
|
||||||
|
|
||||||
build: deps
|
|
||||||
go build -ldflags=$(ldflags)
|
|
||||||
|
|
||||||
install: build
|
|
||||||
go install
|
|
||||||
|
Reference in New Issue
Block a user