-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (38 loc) · 844 Bytes
/
Makefile
File metadata and controls
49 lines (38 loc) · 844 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
# Makefile for claude-test
# Variables
APP_NAME := claude-test
GO := go
.PHONY: all build run test tidy up down clean help
# Default target
all: run
# Build the binary
build:
$(GO) build -o bin/$(APP_NAME) ./...
# Run the application
run:
$(GO) run main.go
# Run tests
test:
$(GO) test ./...
# Tidy dependencies
tidy:
$(GO) mod tidy
# Start MariaDB using docker compose
up:
docker compose -f docker-compose.yaml up -d
# Stop MariaDB
down:
docker compose -f docker-compose.yaml down
# Clean up
clean:
rm -rf bin
help:
@echo "Available targets:"
@echo " build Build the binary"
@echo " run Run the application"
@echo " test Run tests"
@echo " tidy Tidy go.mod"
@echo " up Start MariaDB"
@echo " down Stop MariaDB"
@echo " clean Remove build artifacts"
@echo " help Show this message"