github.com/crowdsecurity/crowdsec@v1.6.1/mk/platform/unix_common.mk (about) 1 2 RM=rm -rf 3 CP=cp 4 CPR=cp -r 5 MKDIR=mkdir -p 6 7 # Go should not be required to run functional tests 8 GOOS ?= $(shell go env GOOS) 9 10 # Current versioning information from env 11 # The $(or) is used to ignore an empty BUILD_VERSION when it's an envvar, 12 # like inside a docker build: docker build --build-arg BUILD_VERSION=1.2.3 13 # as opposed to a make parameter: make BUILD_VERSION=1.2.3 14 BUILD_VERSION:=$(or $(BUILD_VERSION),$(shell git describe --tags --dirty)) 15 16 BUILD_TIMESTAMP=$(shell date +%F"_"%T) 17 DEFAULT_CONFIGDIR?=/etc/crowdsec 18 DEFAULT_DATADIR?=/var/lib/crowdsec/data 19 20 PKG_CONFIG:=$(shell command -v pkg-config 2>/dev/null) 21 22 # See if we have libre2-dev installed for C++ optimizations. 23 # In fedora and other distros, we need to tell where to find re2.pc 24 RE2_CHECK := $(shell PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$(PKG_CONFIG_PATH) pkg-config --libs re2 2>/dev/null)