-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·77 lines (64 loc) · 1.8 KB
/
Makefile
File metadata and controls
executable file
·77 lines (64 loc) · 1.8 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Docsee - Docker TUI Manager v1.0
# Simple Makefile for common development tasks
.PHONY: build run test clean check fmt clippy install help release
# Default target
help:
@echo "Docsee - Docker TUI Manager v1.0"
@echo ""
@echo "Available commands:"
@echo " build - Build the application"
@echo " run - Run the application"
@echo " test - Run tests"
@echo " check - Run cargo check"
@echo " fmt - Format code"
@echo " clippy - Run clippy linter"
@echo " clean - Clean build artifacts"
@echo " install - Install the binary"
@echo " release - Build optimized release version"
@echo " help - Show this help"
# Build the application
build:
@echo "🔨 Building Docsee v1.0..."
cargo build --release
# Run the application in development mode
run:
@echo "🚀 Running Docsee v1.0..."
cargo run
# Run tests
test:
@echo "🧪 Running tests..."
cargo test
# Check code without building
check:
@echo "🔍 Checking code..."
cargo check
# Format code
fmt:
@echo "🎨 Formatting code..."
cargo fmt
# Run clippy linter
clippy:
@echo "📎 Running clippy..."
cargo clippy -- -D warnings
# Clean build artifacts
clean:
@echo "🧹 Cleaning build artifacts..."
cargo clean
# Install the binary to ~/.cargo/bin
install: build
@echo "📦 Installing Docsee v1.0..."
cargo install --path .
# Development workflow - check everything
dev-check: fmt clippy test
@echo "✅ All development checks passed!"
# Release build with optimizations
release: clean
@echo "🏗️ Building release version..."
cargo build --release --locked
@echo "✅ Release build complete: target/release/docsee"
@echo ""
@echo "🦆 Docsee v1.0 is ready for deployment!"
# Quick test of the application
quick-test: build
@echo "🧪 Quick testing Docsee..."
./target/release/docsee --help