prometheus-borg-exporter/Makefile

15 lines
203 B
Makefile
Raw Normal View History

2024-04-01 17:02:29 +02:00
.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)