github.com/crowdsecurity/crowdsec@v1.6.1/mk/platform/windows.mk (about) 1 # Windows specific 2 3 MAKE=make 4 GOOS=windows 5 PREFIX=$(shell $$env:TEMP) 6 7 # Current versioning information from env 8 # BUILD_VERSION?=$(shell (Invoke-WebRequest -UseBasicParsing -Uri https://api.github.com/repos/crowdsecurity/crowdsec/releases/latest).Content | jq -r '.tag_name') 9 # hardcode it till I find a workaround 10 BUILD_VERSION?=$(shell git describe --tags $$(git rev-list --tags --max-count=1)) 11 BUILD_TIMESTAMP?=$(shell Get-Date -Format "yyyy-MM-dd_HH:mm:ss") 12 DEFAULT_CONFIGDIR?=C:\\ProgramData\\CrowdSec\\config 13 DEFAULT_DATADIR?=C:\\ProgramData\\CrowdSec\\data 14 15 #please tell me there is a better way to completly ignore errors when trying to delete a file.... 16 RM=Remove-Item -ErrorAction Ignore -Recurse 17 CP=Copy-Item 18 CPR=Copy-Item -Recurse 19 MKDIR=New-Item -ItemType directory 20 WIN_IGNORE_ERR=; exit 0 21 22 PKG_CONFIG:=$(shell Get-Command pkg-config -ErrorAction SilentlyContinue)