forgejo-release-proxy/Makefile

14 lines
338 B
Makefile
Raw Permalink Normal View History

2024-08-03 16:29:19 +02:00
# Set the default Go build flags
GOFLAGS = -ldflags='-w -s -X webservice.Version=$(VERSION)'
# Build the application
build:
go build $(GOFLAGS) -o bin/forgejo-release-proxy cmd/forgejo-release-proxy/main.go
# Clean the build artifacts
clean:
rm -rf bin
# Set a version for the build
VERSION := $(shell git describe --tags --always)