* Deejay files, split them to achieve go-style project layout * Replace logrus with log/slog module to reduce dependencies * Replace gopkg.in/ini.v1 with github.com/wlevene/ini to make sure all modules BSD licensed * Update linter config && fix tons of linter warnings * Update .gitignore * Update README.md
21 lines
347 B
Makefile
21 lines
347 B
Makefile
#!/usr/bin/env gmake -f
|
|
|
|
GOOPTS=CGO_ENABLED=0
|
|
BUILDOPTS=-ldflags="-s -w" -a -gcflags=all=-l -trimpath -buildvcs=false
|
|
BINARY=joyproxy
|
|
|
|
all: clean build
|
|
|
|
build:
|
|
${GOOPTS} go build ${BUILDOPTS} -o ${BINARY} ./cmd/${BINARY}
|
|
|
|
clean:
|
|
$(RM) ${BINARY}
|
|
|
|
upgrade:
|
|
go get -u ./...
|
|
go mod tidy
|
|
go mod vendor
|
|
|
|
# vim: set ft=make noet ai ts=4 sw=4 sts=4:
|