humble-bot/Makefile

15 lines
322 B
Makefile
Raw Normal View History

2024-10-29 13:21:36 +01:00
# Set the default Go build flags
#GOFLAGS = -ldflags='-w -s -X cmd.Version=$(VERSION)'
GOFLAGS = -ldflags='-w -s'
# Build the application
2023-07-06 07:00:58 +02:00
build:
2024-10-29 13:21:36 +01:00
go build $(GOFLAGS) -o bin/humble-bot main.go
# Clean the build artifacts
2023-07-06 07:00:58 +02:00
clean:
2024-10-29 13:21:36 +01:00
rm -rf bin
# Set a version for the build
VERSION := $(shell git describe --tags --always)