update makefile
This commit is contained in:
parent
f15cfff8ad
commit
64593a6987
2 changed files with 13 additions and 8 deletions
19
Makefile
19
Makefile
|
@ -1,9 +1,14 @@
|
||||||
BINARY_NAME=humble-bot
|
# Set the default Go build flags
|
||||||
default: build
|
#GOFLAGS = -ldflags='-w -s -X cmd.Version=$(VERSION)'
|
||||||
|
GOFLAGS = -ldflags='-w -s'
|
||||||
|
|
||||||
|
# Build the application
|
||||||
build:
|
build:
|
||||||
go build -o ${BINARY_NAME} main.go
|
go build $(GOFLAGS) -o bin/humble-bot main.go
|
||||||
|
|
||||||
|
# Clean the build artifacts
|
||||||
clean:
|
clean:
|
||||||
go clean
|
rm -rf bin
|
||||||
rm ${BINARY_NAME}
|
|
||||||
|
# Set a version for the build
|
||||||
|
VERSION := $(shell git describe --tags --always)
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
package constants
|
package constants
|
||||||
|
|
||||||
var AppVersion = "0.2.1"
|
var AppVersion string
|
||||||
|
|
||||||
var HumbleCategories = []string{"games", "books", "software"}
|
var HumbleCategories = []string{"games", "books", "software"}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue