mirror of
https://github.com/andwati/telecom-platform.git
synced 2026-11-22 11:58:48 +00:00
refactor: Update Go build commands to use explicit source paths and improve output formatting
- Change api-server build path from default to ./cmd/ directory - Change carrier-connector build path from default to current directory - Change CLI build path from default to current directory - Update build-go echo color from CYAN to GREEN for consistency - Remove redundant mkdir -p dist from build-go target
This commit is contained in:
@@ -61,17 +61,16 @@ lint-rust: ## Run Rust linter (clippy)
|
|||||||
@cargo clippy --workspace -- -D warnings
|
@cargo clippy --workspace -- -D warnings
|
||||||
|
|
||||||
# Go - BSS API & Carrier Connector
|
# Go - BSS API & Carrier Connector
|
||||||
build-go: ## Build Go services
|
build-go: ## Build Go applications
|
||||||
@echo "$(CYAN)Building Go projects...$(RESET)"
|
@echo "$(GREEN)Building Go applications...$(RESET)"
|
||||||
@mkdir -p dist
|
@cd apps/api-server && go build -o ../../dist/api-server ./cmd/
|
||||||
@cd apps/api-server && go build -o ../../dist/api-server
|
@cd apps/carrier-connector && go build -o ../../dist/carrier-connector .
|
||||||
@cd apps/carrier-connector && go build -o ../../dist/carrier-connector
|
|
||||||
@echo "$(GREEN)Go build complete!$(RESET)"
|
@echo "$(GREEN)Go build complete!$(RESET)"
|
||||||
|
|
||||||
build-cli: ## Build CLI tool
|
build-cli: ## Build CLI tool
|
||||||
@echo "$(CYAN)Building CLI...$(RESET)"
|
@echo "$(CYAN)Building CLI...$(RESET)"
|
||||||
@mkdir -p dist
|
@mkdir -p dist
|
||||||
@cd apps/cli && go build -o ../../dist/taas-cli
|
@cd apps/cli && go build -o ../../dist/taas-cli .
|
||||||
@echo "$(GREEN)CLI build complete!$(RESET)"
|
@echo "$(GREEN)CLI build complete!$(RESET)"
|
||||||
|
|
||||||
test-go: ## Run Go tests
|
test-go: ## Run Go tests
|
||||||
|
|||||||
Reference in New Issue
Block a user