From ee2286193ad4559cc3e48224b533bbfa77a05c93 Mon Sep 17 00:00:00 2001 From: Xinwei Xiong <3293172751@qq.com> Date: Fri, 8 Sep 2023 15:34:33 +0800 Subject: [PATCH] feat: openim-chat makefile super (#185) --- README.md | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 01c922763..20df0297e 100644 --- a/README.md +++ b/README.md @@ -30,8 +30,8 @@ sudo docker compose up -d ``` Installing Chat -``` -make install +```bash +$ make install ``` ## 🛫 Quick start @@ -44,7 +44,17 @@ make install > We need to run the backend server first ```bash -make build +$ make build + +# OR build Specifying binary +$ make build BINS=admin-api + +# OR build multiarch +$ make build-multiarch +$ make build-multiarch BINS="admin-api" + +# OR use scripts build source code +$ ./scripts/build_all.sh ``` ### 📖 Contributors get up to speed @@ -82,25 +92,31 @@ Targets: > It's highly recommended that you run `make all` before committing your code. 🚀 ```bash -make all +$ make all ``` ### Chat Start ```bash -./scripts/start_all.sh +$ make start_all +# OR use scripts start +$ ./scripts/start_all.sh ``` ### Chat Detection ```bash -./scripts/check_all.sh - ``` +$ make check +# OR use scripts check +$ ./scripts/check_all.sh +``` ### Chat Stop ```bash -./scripts/stop_all.sh +$ make stop +# OR use scripts stop +$ ./scripts/stop_all.sh ``` ## Contributing