-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
57 lines (45 loc) · 1.45 KB
/
Makefile
File metadata and controls
57 lines (45 loc) · 1.45 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
.PHONY: build install clean run help
# Default target
all: build
# Build the application
build:
@echo "Building terminusai..."
go build -o terminusai.exe ./cmd/terminusai
# Build for different platforms
build-windows:
@echo "Building for Windows..."
GOOS=windows GOARCH=amd64 go build -o terminusai-windows-amd64.exe ./cmd/terminusai
build-linux:
@echo "Building for Linux..."
GOOS=linux GOARCH=amd64 go build -o terminusai-linux-amd64 ./cmd/terminusai
build-macos:
@echo "Building for macOS..."
GOOS=darwin GOARCH=amd64 go build -o terminusai-darwin-amd64 ./cmd/terminusai
# Build all platforms
build-all: build-windows build-linux build-macos
# Install dependencies
deps:
@echo "Installing dependencies..."
go mod tidy
go mod download
# Clean build artifacts
clean:
@echo "Cleaning build artifacts..."
rm -f terminusai.exe terminusai-*
# Run the application with help
run:
go run ./cmd/terminusai --help
# Install the application to GOPATH/bin
install:
@echo "Installing terminusai..."
go install ./cmd/terminusai
# Show help
help:
@echo "Available targets:"
@echo " build - Build the application"
@echo " build-all - Build for all platforms"
@echo " deps - Install dependencies"
@echo " clean - Clean build artifacts"
@echo " run - Run application with help"
@echo " install - Install to GOPATH/bin"
@echo " help - Show this help message"