This repository has been archived on 2024-08-02. You can view files and clone it, but cannot push or open issues or pull requests.
orion/Makefile

30 lines
562 B
Makefile
Raw Normal View History

2018-09-17 14:17:54 +02:00
export GO111MODULE := on
build: bin/server
bin/server: vendor
CGO_ENABLED=0 go build -v -o ./bin/server ./cmd/server
watch:
modd
test:
go test -v ./...
lint:
PATH=$(PATH):./bin/gometalinter gometalinter -e '.*/pkg/mod' --vendor ./...
vendor:
go mod tidy
install-devtools: vendor
# Install modd
GO111MODULE=off go get -u github.com/cortesi/modd/cmd/modd
# Install Gometalinter
bash misc/gometalinter/install.sh -b ./bin/gometalinter
clean:
rm -rf ./bin
go clean -i -x -r -modcache
.PHONY: test clean generate vendor install-devtools lint watch