This ensures keeping all dependencies in sync, and simplifies packaging under freebsd/gentoo/etc because there is a single vendor directory.
18 lines
308 B
Makefile
18 lines
308 B
Makefile
ifeq ($(OS), Windows_NT)
|
|
SHELL := pwsh.exe
|
|
.SHELLFLAGS := -NoProfile -Command
|
|
EXT = .exe
|
|
endif
|
|
|
|
GO = go
|
|
GOBUILD = $(GO) build
|
|
|
|
BINARY_NAME = notification-http$(EXT)
|
|
|
|
build: clean
|
|
$(GOBUILD) $(LD_OPTS) $(BUILD_VENDOR_FLAGS) -o $(BINARY_NAME)
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
@$(RM) $(BINARY_NAME) $(WIN_IGNORE_ERR)
|