-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (37 loc) · 870 Bytes
/
Makefile
File metadata and controls
49 lines (37 loc) · 870 Bytes
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
.PHONY: build build-monitor clean install test run run-monitor
# Build the main TUI application
build:
go build -o crucible .
# Build the monitoring agent
build-monitor:
go build -o crucible-monitor ./cmd/crucible-monitor
# Build both applications
build-all: build build-monitor
# Clean build artifacts
clean:
rm -f crucible crucible-monitor
# Install dependencies
install:
go mod tidy
go mod download
# Test the application (build only since TUI can't run in CI)
test:
go build -o crucible .
@echo "Build successful - TUI application ready"
# Run the application (requires TTY)
run: build
sudo ./crucible
# Run the monitoring agent
run-monitor: build-monitor
./crucible-monitor
# Development build with race detection
dev:
go build -race -o crucible .
# Format code
fmt:
go fmt ./...
# Vet code
vet:
go vet ./...
# All checks
check: fmt vet test