app-exporter/Makefile

15 lines
203 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)
all: build
# Build static executable
build:
CGO_ENABLED=0 go build
strip $(PROJECT_NAME)
clean:
rm $(PROJECT_NAME)