-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (40 loc) · 1.21 KB
/
Makefile
File metadata and controls
49 lines (40 loc) · 1.21 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
# SentinelGo Makefile
.PHONY: build build-installers package-release verify clean test help
# Default target
help:
@echo "Available targets:"
@echo " build - Build SentinelGo for current platform"
@echo " build-installers - Build installers for all platforms"
@echo " package-release - Package installers for distribution"
@echo " verify - Verify installation"
@echo " clean - Clean build artifacts"
@echo " test - Run tests"
# Build SentinelGo for current platform
build:
@echo "Building SentinelGo..."
go build -o bin/sentinel ./cmd/sentinel
# Build installers for all platforms
build-installers:
@echo "Building installers for all platforms..."
go run scripts/build-installers.go
# Package installers for distribution
package-release: build-installers
@echo "Packaging installers..."
go run scripts/package-release.go
# Verify installation
verify:
@echo "Verifying installation..."
go run scripts/verify-install.go
# Clean build artifacts
clean:
@echo "Cleaning build artifacts..."
rm -rf bin/ dist/ release/
# Run tests
test:
@echo "Running tests..."
go test ./...
# Install dependencies
deps:
@echo "Installing dependencies..."
go mod download
go mod tidy