crowdsec/plugins/notifications/http/Makefile

24 lines
423 B
Makefile
Raw Normal View History

2022-05-17 10:14:59 +00:00
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
2022-05-17 10:14:59 +00:00
BINARY_NAME=notification-http$(EXT)
clean:
2022-05-17 10:14:59 +00:00
@$(RM) $(BINARY_NAME) $(WIN_IGNORE_ERR)
build: clean
$(GOBUILD) $(LD_OPTS) -o $(BINARY_NAME)
static: clean
$(GOBUILD) $(LD_OPTS_STATIC) -o $(BINARY_NAME) -a -tags netgo