mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-30 10:47:14 -06:00
20 lines
288 B
Makefile
20 lines
288 B
Makefile
SOURCEDIR=.
|
|
SOURCES = $(shell find $(SOURCEDIR) -name '*.go')
|
|
VERSION=$(git describe --always --tags)
|
|
BINARY=bin/pd
|
|
|
|
bin: $(BINARY)
|
|
|
|
$(BINARY): $(SOURCES)
|
|
go build -o $(BINARY) command/*
|
|
|
|
.PHONY: build
|
|
build:
|
|
go get ./...
|
|
go test ./...
|
|
go vet ./...
|
|
|
|
.PHONY: test
|
|
test:
|
|
go test ./...
|