mirror of
https://github.com/activecm/rita
synced 2026-06-08 13:02:45 +00:00
906f53b3e5
Co-Authored-By: Liza Tsibur <liza@activecountermeasures.com>
10 lines
316 B
Makefile
10 lines
316 B
Makefile
VERSION := $(shell git describe --always --abbrev=0 --tags)
|
|
|
|
LDFLAGS := -ldflags='-X main.Version=$(VERSION) -extldflags "-static"'
|
|
CGO_ENABLED ?= 0
|
|
GOARCH ?= $(shell go env GOARCH)
|
|
GOOS ?= $(shell go env GOOS)
|
|
|
|
.PHONY: rita
|
|
rita:
|
|
CGO_ENABLED=$(CGO_ENABLED) GOARCH=$(GOARCH) GOOS=$(GOOS) go build $(LDFLAGS) -o rita
|