16 lines
372 B
Makefile
16 lines
372 B
Makefile
.PHONY: all build protoc test
|
|
|
|
all: build
|
|
|
|
protoc:
|
|
rm -rf pkg/proto
|
|
mkdir pkg/proto
|
|
PATH="$(PWD)/local/bin" protoc -I=proto --go_out=. --go-grpc_out=. proto/FiLeStore.proto
|
|
|
|
build: protoc
|
|
GOOS=windows GOARCH=amd64 go build -o fls-windows-amd64.exe .
|
|
GOOS=linux GOARCH=amd64 go build -o fls-linux-amd64 .
|
|
|
|
test:
|
|
go test git.keganmyers.com/terribleplan/file-store/...
|