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.
15 lines
347 B
15 lines
347 B
GOCMD=go
|
|
GOBUILD=$(GOCMD) build
|
|
GOCLEAN=$(GOCMD) clean
|
|
GOTEST=$(GOCMD) test
|
|
GOGET=$(GOCMD) get
|
|
|
|
BINARY_NAME=memobus_relay_server
|
|
|
|
all: test build
|
|
build:
|
|
@$(GOBUILD) -o $(BINARY_NAME) main.go
|
|
build-linux-amd64:
|
|
@GOOS=linux GOARCH=amd64 $(GOBUILD) -o $(BINARY_NAME) .
|
|
build-linux-riscv64:
|
|
@GOOS=linux GOARCH=riscv64 $(GOBUILD) -o $(BINARY_NAME) .
|