-
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (27 loc) · 762 Bytes
/
Makefile
File metadata and controls
35 lines (27 loc) · 762 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
.PHONY: all build tui frontend bindings clean dev install
all: build
# Build with frontend (TUI + GUI support)
build: frontend
cp -r frontend/dist internal/assets/dist
go build -o lazyagent .
# Build TUI only (no frontend or Wails needed)
tui:
go build -tags notray -o lazyagent .
# Build the frontend
frontend: bindings
cd frontend && npm run build
# Generate Wails bindings
bindings:
wails3 generate bindings -d frontend/src/bindings -ts .
# Install frontend dependencies
install:
cd frontend && npm install
# Dev mode: rebuild frontend and run GUI app
dev: bindings
cd frontend && npm run build
cp -r frontend/dist internal/assets/dist
go run . --gui
# Clean build artifacts
clean:
rm -f lazyagent
rm -rf frontend/dist internal/assets/dist