GO_VERBOSE := -v
CS_BUILD_DIR := $(PWD)/build/container-suseconnect

export GO111MODULE=auto

ifneq "$(VERBOSE)" "1"
GO_VERBOSE=
.SILENT:
endif

.PHONY: test

all:
	rm -rf $(CS_BUILD_DIR)
	mkdir -p $(CS_BUILD_DIR)
	GOBIN=$(CS_BUILD_DIR) go install -a $(GO_VERBOSE) ./...

test:
	go test $(GO_VERBOSE) ./...
	build/ci/climate -t 80 .

mod:
	go mod vendor
