27 lines
659 B
Makefile
27 lines
659 B
Makefile
|
|
# 初始化 Git 仓库
|
|
.PHONY: git-init conf-init
|
|
git-init:
|
|
@if [ ! -d .git ]; then \
|
|
git submodule update --init; \
|
|
else \
|
|
echo "Git repository already initialized."; \
|
|
fi
|
|
|
|
conf-init:
|
|
@echo "Copying configuration files..."
|
|
-@mkdir data
|
|
@cp -r ./src/conf data/
|
|
|
|
.PHONY: run-cli run-server run-all
|
|
run-cli:
|
|
@echo "Starting client services..."
|
|
@docker compose --profile client up -d --force-recreate --build
|
|
|
|
run-server:
|
|
@echo "Starting server services..."
|
|
@docker compose --profile server up -d --force-recreate --build
|
|
|
|
run-all:
|
|
@echo "Starting all services..."
|
|
@docker compose --profile server --profile client up -d --force-recreate --build
|