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