-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (35 loc) · 967 Bytes
/
Copy pathMakefile
File metadata and controls
42 lines (35 loc) · 967 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
# Makefile for PulseCheck
.PHONY: build test run-server run-cli clean help
# Default target
help:
@echo "PulseCheck Makefile"
@echo "Usage:"
@echo " make build - Build the CLI and server binaries"
@echo " make test - Run all tests"
@echo " make run-server - Run the server"
@echo " make run-cli - Run the CLI"
@echo " make clean - Clean build artifacts"
@echo " make help - Show this help message"
# Build targets
build:
@echo "Building PulseCheck..."
go build -o pulsecheck-cli cmd/pulsecheck/main.go
go build -o pulsecheck-server-api cmd/pulsecheck-server/main.go
@echo "Build complete!"
# Test target
test:
@echo "Running tests..."
go test ./...
# Run targets
run-server:
@echo "Starting server..."
./pulsecheck-server-api
run-cli:
@echo "Starting CLI..."
./pulsecheck-cli
# Clean target
clean:
@echo "Cleaning build artifacts..."
rm -f pulsecheck-cli pulsecheck-server-api
rm -f *.db
@echo "Clean complete!"