refactor: 调整项目目录结构,移除其他语言 API 目录

This commit is contained in:
RockYang
2023-07-10 09:42:11 +08:00
parent 22efe81080
commit 9d51a478b9
58 changed files with 0 additions and 15 deletions

20
api/Makefile Normal file
View File

@@ -0,0 +1,20 @@
SHELL=/usr/bin/env bash
NAME := chatgpt-v3
all: window linux darwin
window:
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o bin/$(NAME)-amd64.exe main.go
.PHONY: window
linux:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o bin/$(NAME)-amd64-linux main.go
.PHONY: linux
darwin:
CGO_ENABLED=1 GOOS=darwin GOARCH=amd64 go build -o bin/$(NAME)-amd64-darwin main.go
.PHONY: darwin
clean:
rm -rf bin/$(NAME)-*
.PHONY: clean