ipfs-cluster/Makefile
Hector Sanjuan f19c4b5567 fix lowercase commit symbol
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-01-24 16:33:34 +01:00

38 lines
986 B
Makefile

all: server client
clean: rwundo
$(MAKE) -C ipfs-cluster-service clean
$(MAKE) -C ipfs-cluster-ctl clean
install: deps
$(MAKE) -C ipfs-cluster-service install
$(MAKE) -C ipfs-cluster-ctl install
build: deps
go build -ldflags "-X ipfscluster.commit=$(shell git rev-parse HEAD)"
$(MAKE) -C ipfs-cluster-service build
$(MAKE) -C ipfs-cluster-ctl build
service: deps
$(MAKE) -C ipfs-cluster-service ipfs-cluster-service
ctl: deps
$(MAKE) -C ipfs-cluster-ctl ipfs-cluster-ctl
gx:
go get github.com/whyrusleeping/gx
go get github.com/whyrusleeping/gx-go
deps: gx
go get github.com/gorilla/mux
go get github.com/hashicorp/raft
go get github.com/hashicorp/raft-boltdb
go get github.com/ugorji/go/codec
gx --verbose install --global
gx-go rewrite
test: deps
go test -tags silent -v -covermode count -coverprofile=coverage.out .
rw:
gx-go rewrite
rwundo:
gx-go rewrite --undo
publish: rwundo
gx publish
.PHONY: all gx deps test rw rwundo publish service ctl install clean