crowdsec/mk/platform.mk
mmetc 67cdf91f94
Short build tag in version number (#2658)
* use short commit hash in version number
* var -> const
* cscli: extract version.go, doc.go
* don't repeat commit hash in version number
2023-12-14 09:16:38 +01:00

21 lines
444 B
Makefile

BUILD_CODENAME ?= alphaga
GOARCH ?= $(shell go env GOARCH)
BUILD_TAG ?= $(shell git rev-parse --short HEAD)
ifeq ($(OS), Windows_NT)
SHELL := pwsh.exe
.SHELLFLAGS := -NoProfile -Command
SYSTEM = windows
EXT = .exe
else
SYSTEM ?= $(shell uname -s | tr '[A-Z]' '[a-z]')
include mk/platform/unix_common.mk
endif
ifneq ("$(wildcard mk/platform/$(SYSTEM).mk)", "")
include mk/platform/$(SYSTEM).mk
else
include mk/platform/linux.mk
endif