From 51493c9fddcfab0f88f24c57d3500a225f54f720 Mon Sep 17 00:00:00 2001 From: yusing Date: Fri, 29 Mar 2024 01:28:44 +0000 Subject: [PATCH] makefile update --- Makefile | 5 +++-- README.md | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index c7f9ad7..47614c4 100755 --- a/Makefile +++ b/Makefile @@ -2,11 +2,12 @@ all: build quick-restart logs -init-config: +setup: mkdir -p config certs [ -f config/config.yml ] || cp config.example.yml config/config.yml [ -f config/providers.yml ] || touch config/providers.yml - + [ -f compose.yml ] || cp compose.example.yml compose.yml + build: mkdir -p bin CGO_ENABLED=0 GOOS=linux go build -pgo=auto -o bin/go-proxy src/go-proxy/*.go diff --git a/README.md b/README.md index a4c53aa..17a20b5 100755 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ In the examples domain `x.y.z` is used, replace them with your domain 1. Download and extract the latest release (or clone the repository) -2. Call `make init-config` to init config file and provider file +2. Call `make setup` to init config file, provider file, and docker compose file 3. Point your domain (i.e `y.z`) to your machine's IP address