github.com/crowdsecurity/crowdsec@v1.6.1/mk/platform.mk (about) 1 2 BUILD_CODENAME ?= alphaga 3 GOARCH ?= $(shell go env GOARCH) 4 BUILD_TAG ?= $(shell git rev-parse --short HEAD) 5 6 ifeq ($(OS), Windows_NT) 7 SHELL := pwsh.exe 8 .SHELLFLAGS := -NoProfile -Command 9 SYSTEM = windows 10 EXT = .exe 11 else 12 SYSTEM ?= $(shell uname -s | tr '[A-Z]' '[a-z]') 13 include mk/platform/unix_common.mk 14 endif 15 16 ifneq ("$(wildcard mk/platform/$(SYSTEM).mk)", "") 17 include mk/platform/$(SYSTEM).mk 18 else 19 include mk/platform/linux.mk 20 endif