-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (30 loc) 路 699 Bytes
/
Copy pathMakefile
File metadata and controls
38 lines (30 loc) 路 699 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
.PHONY: build run clean test help
# Build the application
build:
go build -o bin/termagotchi cmd/termagotchi/main.go
# Run the application
run: build
./bin/termagotchi
# Clean build artifacts
clean:
rm -f bin/termagotchi
lint:
golangci-lint run
# Run tests
test:
go test ./...
# Install dependencies
deps:
go mod tidy
# Show help
help:
@echo "Available commands:"
@echo " build - Build the termagotchi application"
@echo " run - Build and run the application"
@echo " clean - Remove build artifacts"
@echo " test - Run tests"
@echo " lint - Run linter"
@echo " deps - Install dependencies"
@echo " help - Show this help message"
# Default target
all: build