server
This commit is contained in:
6
Makefile
6
Makefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user