Small CLI monitoring tool to decode proprietary [...] protocol and display info in human readable representation
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ycli-mon/Makefile

30 lines
626 B

BINARY = cli-mon
GOARCH = amd64
LDFLAGS = -ldflags "-s -w -buildid=$(git rev-parse HEAD)"
# Build the project
all: clean test linux darwin windows
linux:
GOOS=linux GOARCH=${GOARCH} go build ${LDFLAGS} -tags netgo -o ${BINARY}-linux-${GOARCH} . ; \
cd - >/dev/null
darwin:
GOOS=darwin GOARCH=${GOARCH} go build ${LDFLAGS} -tags netgo -o ${BINARY}-darwin-${GOARCH} . ; \
cd - >/dev/null
windows:
GOOS=windows GOARCH=${GOARCH} go build ${LDFLAGS} -tags netgo -o ${BINARY}-windows-${GOARCH}.exe . ; \
cd - >/dev/null
test:
go test
fmt:
go fmt
clean:
rm -f ${BINARY}-*
.PHONY: linux darwin windows test fmt clean