* rm -f => $(RM) * PHONY targets * remove email plugin binary on cleanup * unused make variables
17 lines
314 B
Makefile
17 lines
314 B
Makefile
# Go parameters
|
|
GOCMD=go
|
|
GOBUILD=$(GOCMD) build
|
|
GOCLEAN=$(GOCMD) clean
|
|
GOTEST=$(GOCMD) test
|
|
GOGET=$(GOCMD) get
|
|
BINARY_NAME=notification-http
|
|
|
|
clean:
|
|
@$(RM) "$(BINARY_NAME)"
|
|
|
|
build: clean
|
|
@$(GOBUILD) $(LD_OPTS) -o $(BINARY_NAME) -v
|
|
|
|
static: clean
|
|
$(GOBUILD) $(LD_OPTS_STATIC) -o $(BINARY_NAME) -v -a -tags netgo
|