mirror of
https://gitee.com/blackfox/geekai.git
synced 2024-12-02 04:07:41 +08:00
16 lines
312 B
Makefile
16 lines
312 B
Makefile
SHELL=/usr/bin/env bash
|
|
NAME := chatgpt-plus
|
|
all: amd64 arm64
|
|
|
|
amd64:
|
|
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o bin/$(NAME)-linux main.go
|
|
.PHONY: amd64
|
|
|
|
arm64:
|
|
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 GOARM=7 go build -o bin/$(NAME)-linux main.go
|
|
.PHONY: arm64
|
|
|
|
clean:
|
|
rm -rf bin/$(NAME)-*
|
|
.PHONY: clean
|