17 lines
324 B
Makefile
17 lines
324 B
Makefile
|
# Go parameters
|
||
|
GoCMD=go
|
||
|
GoBUILD=$(GoCMD) build
|
||
|
GoCLEAN=$(GoCMD) clean
|
||
|
GoTEST=$(GoCMD) test
|
||
|
GoMOD=$(GoCMD) mod
|
||
|
BINARY_NAME=tool
|
||
|
|
||
|
# To install GoLang please follow the installation instructions on https://go.dev/
|
||
|
all: build
|
||
|
build:
|
||
|
$(GoBUILD) -o $(BINARY_NAME) -v
|
||
|
clean:
|
||
|
$(GOCLEAN)
|
||
|
rm -f $(BINARY_NAME)
|
||
|
deps:
|
||
|
$(GoMOD) tidy
|