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-07-26 08:24:37 +00:00
|
|
|
GO = go
|
|
|
|
GOBUILD = $(GO) build
|
2021-08-25 09:43:29 +00:00
|
|
|
|
2023-08-24 07:46:25 +00:00
|
|
|
BINARY_NAME = notification-email$(EXT)
|
|
|
|
|
2021-08-25 09:43:29 +00:00
|
|
|
build: clean
|
2023-08-28 13:58:26 +00:00
|
|
|
$(GOBUILD) $(LD_OPTS) -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)
|