1a6f12c88e
The make tidy target runs "go mod tidy" in the root directory and all plugins.
18 lines
325 B
Makefile
18 lines
325 B
Makefile
ifeq ($(OS), Windows_NT)
|
|
SHELL := pwsh.exe
|
|
.SHELLFLAGS := -NoProfile -Command
|
|
EXT = .exe
|
|
endif
|
|
|
|
PLUGIN=http
|
|
BINARY_NAME = notification-$(PLUGIN)$(EXT)
|
|
|
|
GO = go
|
|
GOBUILD = $(GO) build
|
|
|
|
build: clean
|
|
$(GOBUILD) $(LD_OPTS) $(BUILD_VENDOR_FLAGS) -o $(BINARY_NAME)
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
@$(RM) $(BINARY_NAME) $(WIN_IGNORE_ERR)
|