server
Some checks failed
Build / build (push) Failing after 6m4s
Test / build (push) Failing after 6m33s

This commit is contained in:
Chuck Smith
2024-04-02 12:21:41 -04:00
parent 862119e90e
commit 4c9ec5aaaa
77 changed files with 1181 additions and 244 deletions

View File

@@ -2,7 +2,7 @@
CGO_ENABLED=0
VERSION ?= $(shell git describe 2>/dev/null || echo "")
VERSION ?= $(shell git describe)
DESTDIR ?= $(GOBIN)
@@ -33,13 +33,13 @@ build: clean cli server ## Build monkey
cli: ## Build monkey CLI
@go build \
-tags "netgo static_build" -installsuffix netgo \
-ldflags "-w -X go.unflavoredmeson.com/monkey/v2.MonkeyVersion=$(VERSION)" \
-ldflags "-w -X go.unflavoredmeson.com/monkey/MonkeyVersion=$(VERSION)" \
./cmd/monkey/...
server: ## Build Monkey server
@go build \
-tags "netgo static_build" -installsuffix netgo \
-ldflags "-w -X go.unflavoredmeson.com/monkey/v2.MonkeyVersion=$(VERSION)" \
-ldflags "-w -X go.unflavoredmeson.com/monkey/MonkeyVersion=$(VERSION)" \
./cmd/monkey/...
install: cli server ## Install monkey to $DESTDIR