government / Makefile

@ 0a6d0b45c9b0e3f50876896c1c597c24311ceb7b | history


.PHONY: check test vet fmt bin install clean

check: fmt vet test

test:
	go test ./...

vet:
	go vet ./...

fmt:
	@unformatted="$$(gofmt -l .)"; \
	if [ -n "$$unformatted" ]; then echo "gofmt needed:"; echo "$$unformatted"; exit 1; fi

# Build every command (government, govlisp) into ./bin.
bin:
	go build -o bin/ ./cmd/...

# Install every command into $(go env GOBIN), or $(go env GOPATH)/bin if unset.
install:
	go install ./cmd/...

clean:
	rm -rf bin