mirror of
https://github.com/woodchen-ink/webp_server_go.git
synced 2025-07-18 13:42:02 +08:00
Fix Makefile
This commit is contained in:
parent
10fe5e3f80
commit
156f815935
22
Makefile
22
Makefile
@ -1,13 +1,15 @@
|
|||||||
GOCMD=go
|
ifeq ($(shell uname),Linux)
|
||||||
GOBUILD=$(GOCMD) build
|
OS=linux
|
||||||
GOCLEAN=$(GOCMD) clean
|
else
|
||||||
GOTEST=$(GOCMD) test
|
OS=darwin
|
||||||
GOGET=$(GOCMD) get
|
endif
|
||||||
BINARY_NAME=webp-server
|
|
||||||
BINARY_LINUX=$(BINARY_NAME)_linux-amd64
|
ifeq ($(shell uname -m),aarch64)
|
||||||
|
ARCH=arm64
|
||||||
|
else
|
||||||
|
ARCH=amd64
|
||||||
|
endif
|
||||||
|
|
||||||
all: build
|
all: build
|
||||||
build:
|
build:
|
||||||
$(GOBUILD) -o $(BINARY_LINUX) -v
|
./scripts/build.sh $(OS) $(ARCH)
|
||||||
test:
|
|
||||||
$(GOTEST) -v ./...
|
|
0
scripts/build.sh
Normal file → Executable file
0
scripts/build.sh
Normal file → Executable file
Loading…
x
Reference in New Issue
Block a user