File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 1
- embed :
1
+ CHAT_SOURCES_STAMP = chat/.sources.stamp
2
+ 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
+
4
+ $(CHAT_SOURCES_STAMP ) : $(CHAT_SOURCES )
5
+ @echo " Chat sources changed. Running build steps..."
2
6
cd chat && bun run build
3
7
rm -rf lib/httpapi/chat && mkdir -p lib/httpapi/chat && touch lib/httpapi/chat/marker
4
8
cp -r chat/out/. lib/httpapi/chat/
9
+ touch $@
10
+
11
+ .PHONY : embed
12
+ embed : $(CHAT_SOURCES_STAMP )
13
+ @echo " Chat build is up to date."
5
14
15
+ .PHONY : build
6
16
build : embed
7
17
go build -o agentapi main.go
Original file line number Diff line number Diff line change @@ -39,3 +39,4 @@ yarn-error.log*
39
39
# typescript
40
40
* .tsbuildinfo
41
41
next-env.d.ts
42
+ .sources.stamp
You can’t perform that action at this time.
0 commit comments