-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (37 loc) · 1.06 KB
/
Makefile
File metadata and controls
44 lines (37 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
.PHONY: all build build-all clean help
# Package configuration
PACKAGE_NAME := swarm-cli
VERSION := 1.0.0
BUILD_DIR := build
# Colors for output
GREEN := \033[0;32m
BLUE := \033[0;34m
YELLOW := \033[0;33m
NC := \033[0m
all: build
help:
@echo "$(BLUE)Swarm CLI Build System$(NC)"
@echo ""
@echo "$(YELLOW)Available Targets:$(NC)"
@echo " $(GREEN)make build$(NC) - Build binary for Linux"
@echo " $(GREEN)make build-all$(NC) - Build binaries for all platforms"
@echo " $(GREEN)make clean$(NC) - Clean build artifacts"
@echo " $(GREEN)make help$(NC) - Show this help message"
@echo ""
@echo "$(YELLOW)Requirements:$(NC)"
@echo " - Node.js 22+ (for building only)"
@echo " - pnpm (will be auto-installed if missing)"
@echo ""
@echo "$(YELLOW)Quick Start:$(NC)"
@echo " 1. pnpm install"
@echo " 2. make build"
@echo " 3. ./build/swarm-cli-linux --help"
@echo ""
build:
@node build.js linux
build-all:
@node build.js all
clean:
@echo "$(YELLOW)Cleaning build artifacts...$(NC)"
@rm -rf $(BUILD_DIR)
@echo "$(GREEN)✓ Clean complete$(NC)"