concile/Makefile

18 lines
344 B
Makefile

SOURCE := $(shell find src -type f)
all: clean test lint build
test: $(SOURCE)
go test -C src -v
lint: $(SOURCE)
go vet -C src
build: $(SOURCE) test lint
CGO_ENABLED=0 go build -C src -v -ldflags="-w -s" -o ../concile
clean:
rm -f concile
coverage:
go test -C src -coverprofile=../coverage.out -v && go tool cover -html=coverage.out