mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-10 20:05:55 +02:00
* github-ci: color unit test output and logs * new config option: force_color_logs (useful in CI) * bats: show sqlite/mysql dump at the end * removed "-v" (print package names) from "go build" * general workflow cleanup
24 lines
426 B
Makefile
24 lines
426 B
Makefile
ifeq ($(OS),Windows_NT)
|
|
SHELL := pwsh.exe
|
|
.SHELLFLAGS := -NoProfile -Command
|
|
EXT=.exe
|
|
endif
|
|
|
|
|
|
|
|
# Go parameters
|
|
GOCMD=go
|
|
GOBUILD=$(GOCMD) build
|
|
GOCLEAN=$(GOCMD) clean
|
|
GOTEST=$(GOCMD) test
|
|
GOGET=$(GOCMD) get
|
|
BINARY_NAME=notification-splunk$(EXT)
|
|
|
|
build: clean
|
|
$(GOBUILD) $(LD_OPTS) -o $(BINARY_NAME)
|
|
|
|
clean:
|
|
@$(RM) $(BINARY_NAME) $(WIN_IGNORE_ERR)
|
|
|
|
static: clean
|
|
$(GOBUILD) $(LD_OPTS_STATIC) -o $(BINARY_NAME) -a -tags netgo
|