Skip to content

Commit

Permalink
feat: compatible with make build/clean/run-server
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyoucao577 authored Nov 17, 2024
1 parent 170ffce commit 5e9abbe
Showing 1 changed file with 5 additions and 20 deletions.
25 changes: 5 additions & 20 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,16 @@ REGISTRY ?= agoraio/

.PHONY: build build-agents build-playground build-server clean clean-agents docker-build-playground docker-build-server run-gd-server run-server

build: build-agents build-server

build-agents:
@echo ">> build agents"
cd agents && ./scripts/install_deps_and_build.sh linux x64 && mv bin/main bin/worker
@echo ">> done"
build:
task build

build-playground:
@echo ">> build playground"
cd playground && npm i && npm run build
@echo ">> done"

build-server:
@echo ">> build server"
cd server && go mod tidy && go mod download && go build -o bin/api main.go
@echo ">> done"

clean: clean-agents

clean-agents:
@echo ">> clean agents"
rm -rf agents/bin/worker agents/out agents/interface agents/include agents/lib agents/lib64 agents/ten_packages/system/ten_runtime* agents/ten_packages/system/agora_rtc_sdk agents/ten_packages/system/azure_speech_sdk agents/ten_packages/system/nlohmann_json agents/.release
@echo ">> done"
clean:
task clean

docker-build-playground:
@echo ">> docker build playground"
Expand All @@ -44,6 +31,4 @@ run-gd-server:
@echo ">> done"

run-server:
@echo ">> run server"
server/bin/api
@echo ">> done"
task server:run

0 comments on commit 5e9abbe

Please sign in to comment.