-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (32 loc) · 743 Bytes
/
Makefile
File metadata and controls
42 lines (32 loc) · 743 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
APP_NAME := aiu
BUILD_DIR := build
BIN_DIR := $(GOPATH)/bin
MAIN_PATH := ./cmd/aiu
.PHONY: all build install clean run test fmt vet
all: build
build:
@mkdir -p $(BUILD_DIR)
go build -o $(BUILD_DIR)/$(APP_NAME) $(MAIN_PATH)
install:
go install $(MAIN_PATH)
run:
go run $(MAIN_PATH)
clean:
rm -rf $(BUILD_DIR)
test:
go test ./...
fmt:
go fmt ./...
vet:
go vet ./...
# Setup development environment
dev-setup:
mkdir -p ~/.aiu/prompts
@if [ ! -f ~/.aiu/config.yaml ]; then \
cp config.yaml.example ~/.aiu/config.yaml; \
echo "Created config at ~/.aiu/config.yaml"; \
fi
@if [ -d prompts ] && [ -n "$$(ls -A prompts)" ]; then \
cp prompts/*.md ~/.aiu/prompts/; \
echo "Copied sample prompts to ~/.aiu/prompts/"; \
fi