diff --git a/Makefile b/Makefile index ba6e290..a7365f6 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,8 @@ port := 5053 moc_server_address := 127.0.0.1:5059 +bold := \033[1m +normal := \033[0m run: go run cmd/main.go -p $(port) -d "$(moc_server_address)" @@ -36,4 +38,17 @@ test-server: go test @$(MAKE) stop-moc-server -tests: test-server +tests: + @$(MAKE) test-server + +help: + @echo "$(bold)Makefile commands$(normal)" + @echo "-----------------" + @echo "$(bold)make build$(normal) : will build the project" + @echo "$(bold)make tests$(normal) : run tests for the project" + @echo "$(bold)make run$(normal) : will run the project" + @echo "" + @echo "$(bold)OS commands$(normal)" + @echo "-----------" + @echo "start server at PORT with 'IP:PORT' list of partners:" + @echo "$(bold)./bin/simple-choose-ad -p PORT -d 'IP:PORT'$(normal)" diff --git a/readme.md b/readme.md index c67a218..c79e7c6 100644 --- a/readme.md +++ b/readme.md @@ -6,3 +6,8 @@ make build ./bin/simple-choose-ad -p PORT -d "IP:PORT" ``` где `PORT` это порт для входящих запросов, который слушает сервис, а `IP:PORT,IP2:PORT` список рекламных партнеров. + +Также можно просмотреть help +```shell +make help +```