0

Move read config stuff to separate file

This commit is contained in:
eleksir
2023-11-05 16:47:29 +03:00
parent 843dd418b0
commit bdb039c3f8
3 changed files with 242 additions and 227 deletions

View File

@@ -1,11 +1,15 @@
#!/usr/bin/env gmake -f
BUILDOPTS=-ldflags="-s -w" -a -gcflags=all=-l -trimpath
FILELIST=collection.go types.go globals.go lib.go event_parser.go commands.go redis.go settings-db-util.go main.go
FILELIST=collection.go commands.go event_parser.go globals.go lib.go main.go read_config.go redis.go types.go \
settings-db-util.go
BINARY=aleesa-jabber-go
all: clean build
build:
ifeq ($(OS),Windows_NT)
# powershell
@@ -22,9 +26,11 @@ else
CGO_ENABLED=0 go build ${BUILDOPTS} -o ${BINARY} ${FILELIST}
endif
clean:
go clean
upgrade:
ifeq ($(OS),Windows_NT)
# jetbrains golang, powershell