mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-19 17:59:05 -05:00
Make build target (#1927)
Signed-off-by: Ioannis Polyzos <git@ipolyzos.com>
This commit is contained in:
6
Makefile
6
Makefile
@@ -3,6 +3,12 @@ export PATH := $(abspath bin/):${PATH}
|
||||
# Dependency versions
|
||||
LICENSEI_VERSION = 0.9.0
|
||||
|
||||
# build tofu binary in the current directory with the version set to the git tag
|
||||
# or commit hash if there is no tag.
|
||||
.PHONY: build
|
||||
build:
|
||||
go build -ldflags "-X main.version=$(shell git describe --tags --always --dirty)" -o tofu ./cmd/tofu
|
||||
|
||||
# generate runs `go generate` to build the dynamically generated
|
||||
# source files, except the protobuf stubs which are built instead with
|
||||
# "make protobuf".
|
||||
|
||||
Reference in New Issue
Block a user