app-exporter/Makefile

15 lines
261 B
Makefile
Raw Normal View History

2024-10-31 20:42:28 +01:00
.PHONY: all build clean
PROJECT_NAME = $(shell head -n1 go.mod | cut -d'/' -f2)
VERSION ?= dev
2024-10-31 20:42:28 +01:00
all: build
# Build static executable
build:
CGO_ENABLED=0 go build -ldflags "-X main.VERSION=${VERSION}"
2024-10-31 20:42:28 +01:00
strip $(PROJECT_NAME)
clean:
rm $(PROJECT_NAME)