app-exporter/Makefile

14 lines
261 B
Makefile

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