7c3dbffcc6
* clean up BUILD_GOVERSION which is set at runtime with runtime lib * simplify version check Co-authored-by: sabban <15465465+sabban@users.noreply.github.com> Co-authored-by: Marco Mariani <marco@crowdsec.net>
19 lines
475 B
Makefile
19 lines
475 B
Makefile
|
|
RM=rm -rf
|
|
CP=cp
|
|
CPR=cp -r
|
|
MKDIR=mkdir -p
|
|
|
|
# Go should not be required to run functional tests
|
|
GOOS ?= $(shell go env GOOS)
|
|
GOARCH ?= $(shell go env GOARCH)
|
|
|
|
BUILD_GOVERSION=$(shell go env GOVERSION | sed s/go//)
|
|
|
|
#Current versioning information from env
|
|
BUILD_VERSION?=$(shell git describe --tags)
|
|
BUILD_CODENAME="alphaga"
|
|
BUILD_TIMESTAMP=$(shell date +%F"_"%T)
|
|
BUILD_TAG?=$(shell git rev-parse HEAD)
|
|
DEFAULT_CONFIGDIR?=/etc/crowdsec
|
|
DEFAULT_DATADIR?=/var/lib/crowdsec/data
|