quintodrome/Makefile

33 lines
801 B
Makefile
Raw Normal View History

BINARY=sonic-server
2016-10-10 16:27:09 -08:00
2020-01-06 09:47:48 -09:00
build:
2020-01-06 11:19:14 -09:00
go build
2016-10-10 16:27:09 -08:00
.PHONY: clean
clean:
rm -f ${BINARY}
2016-10-10 16:27:09 -08:00
.PHONY: setup
setup:
@which reflex || (echo "Installing Reflex" && GO111MODULE=off go get -u github.com/cespare/reflex)
@which goconvey || (echo "Installing GoConvey" && GO111MODULE=off go get -u github.com/smartystreets/goconvey)
@which wire || (echo "Installing Wire" && GO111MODULE=off go get -u go get github.com/google/wire/cmd/wire)
go mod download
2016-10-10 16:27:09 -08:00
.PHONY: run
run:
2020-01-06 11:19:14 -09:00
@reflex -s -r "(\.go$$|sonic.toml)" -- go run .
2016-10-10 16:27:09 -08:00
.PHONY: test
test:
BEEGO_RUNMODE=test go test ./... -v
2016-10-10 16:27:09 -08:00
.PHONY: convey
convey:
NOLOG=1 goconvey --port 9090 -excludedDirs static,devDb,wiki,bin,tests
2016-10-10 16:27:09 -08:00
.PHONY: cloc
cloc:
# cloc can be installed using brew
cloc --exclude-dir=devDb,.idea,.vscode,wiki,static --exclude-ext=iml,xml .