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
331 B
15 lines
331 B
|
2 weeks ago
|
GOCMD=go
|
||
|
|
GOBUILD=$(GOCMD) build
|
||
|
|
GOCLEAN=$(GOCMD) clean
|
||
|
|
GOTEST=$(GOCMD) test
|
||
|
|
GOGET=$(GOCMD) get
|
||
|
|
|
||
|
|
BINARY_NAME=main
|
||
|
|
|
||
|
|
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) .
|