-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (26 loc) · 724 Bytes
/
Makefile
File metadata and controls
33 lines (26 loc) · 724 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
BINARY_NAME=gobox
BUILD_DIR=build
all: build
test:
@echo "Running tests..."
go test ./... -v
build: test
@echo "Building $(BINARY_NAME)..."
go build -o $(BUILD_DIR)/$(BINARY_NAME) ./cmd/$(BINARY_NAME)/main.go
@echo "Build complete. Binary in $(BUILD_DIR)/$(BINARY_NAME)"
install: build
@echo "Installing $(BINARY_NAME) to /usr/local/bin..."
mkdir -p /usr/local/bin
sudo install $(BUILD_DIR)/$(BINARY_NAME) /usr/local/bin/$(BINARY_NAME)
@echo "$(BINARY_NAME) installed to /usr/local/bin"
clean:
@echo "Cleaning build directory..."
rm -rf $(BUILD_DIR)
aider:
aider \
--api-key openai=$$OPENAI_KEY \
--model o3-mini \
--test-cmd 'make test' \
--auto-test \
--watch-files
.PHONY: all build install clean