15 lines
203 B
Makefile
15 lines
203 B
Makefile
|
.PHONY: all build clean
|
||
|
|
||
|
PROJECT_NAME = $(shell head -n1 go.mod | cut -d'/' -f2)
|
||
|
|
||
|
|
||
|
all: build
|
||
|
|
||
|
# Build static executable
|
||
|
build:
|
||
|
CGO_ENABLED=0 go build
|
||
|
strip $(PROJECT_NAME)
|
||
|
|
||
|
clean:
|
||
|
rm $(PROJECT_NAME)
|