Skip to content

Commit 0f9009b

Browse files
committed
configurable output path in make build
1 parent 15b5dcf commit 0f9009b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ snapshot2-*.log
55
.aider*
66
schema.yaml
77
**/.claude/settings.local.json
8+
out

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
CHAT_SOURCES_STAMP = chat/.sources.stamp
22
CHAT_SOURCES = $(shell find chat \( -path chat/node_modules -o -path chat/out -o -path chat/.next \) -prune -o -not -path chat/.sources.stamp -type f -print)
3+
BINPATH ?= out/agentapi
34

45
$(CHAT_SOURCES_STAMP): $(CHAT_SOURCES)
56
@echo "Chat sources changed. Running build steps..."
@@ -14,4 +15,4 @@ embed: $(CHAT_SOURCES_STAMP)
1415

1516
.PHONY: build
1617
build: embed
17-
go build -o agentapi main.go
18+
go build -o ${BINPATH} main.go

0 commit comments

Comments
 (0)