2022-09-14 12:22:57 +00:00
|
|
|
ifeq ($(OS), Windows_NT)
|
|
|
|
SHELL := pwsh.exe
|
|
|
|
.SHELLFLAGS := -NoProfile -Command
|
|
|
|
EXT = .exe
|
2022-05-17 10:14:59 +00:00
|
|
|
endif
|
|
|
|
|
2023-06-05 21:15:18 +00:00
|
|
|
PLUGIN=http
|
|
|
|
BINARY_NAME = notification-$(PLUGIN)$(EXT)
|
|
|
|
|
2023-07-26 08:24:37 +00:00
|
|
|
GO = go
|
|
|
|
GOBUILD = $(GO) build
|
2021-08-25 09:43:29 +00:00
|
|
|
|
|
|
|
build: clean
|
2022-10-04 07:51:35 +00:00
|
|
|
$(GOBUILD) $(LD_OPTS) $(BUILD_VENDOR_FLAGS) -o $(BINARY_NAME)
|
2021-08-25 09:43:29 +00:00
|
|
|
|
2023-06-05 21:15:18 +00:00
|
|
|
.PHONY: clean
|
2022-09-14 12:22:57 +00:00
|
|
|
clean:
|
|
|
|
@$(RM) $(BINARY_NAME) $(WIN_IGNORE_ERR)
|