-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
456 lines (422 loc) · 16.6 KB
/
Makefile
File metadata and controls
456 lines (422 loc) · 16.6 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
.PHONY: all build build-variants build-linux-slim build-all build-all-variants package-all install install-win uninstall clean help test test-docker install-bootstrap-docs sync-embed-workspace cleanup-embed-workspace test-only clean-test-artifacts dev
# Build variables
BINARY_NAME=clawgo
BUILD_DIR=build
CMD_DIR=cmd
MAIN_GO=$(CMD_DIR)/main.go
# Version
VERSION?=$(shell git describe --tags --always --dirty 2>/dev/null || echo "dev")
BUILD_TIME=$(shell date +%FT%T%z)
STRIP_SYMBOLS?=1
BASE_LDFLAGS=-X main.version=$(VERSION) -X main.buildTime=$(BUILD_TIME)
EXTRA_LDFLAGS=
ifeq ($(STRIP_SYMBOLS),1)
EXTRA_LDFLAGS+= -s -w
endif
LDFLAGS=-ldflags "$(BASE_LDFLAGS) $(EXTRA_LDFLAGS)"
# Go variables
GO?=go
GOFLAGS?=
BUILD_FLAGS?=-trimpath -buildvcs=false
COMPRESS_BINARY?=0
UPX_FLAGS?=--best --lzma
# Linux slim build knobs (opt-in, keeps default behavior unchanged)
LINUX_SLIM_TAGS?=purego,netgo,osusergo
LINUX_SLIM_CGO?=0
LINUX_SLIM_LDFLAGS?=-buildid=
LINUX_SLIM_BUILD_FLAGS?=-trimpath -buildvcs=false -tags "$(LINUX_SLIM_TAGS)"
LINUX_SLIM_PATH=$(BUILD_DIR)/$(BINARY_NAME)-linux-$(ARCH)-slim
# Cross-platform build matrix (space-separated GOOS/GOARCH pairs)
BUILD_TARGETS?=linux/amd64 linux/arm64 linux/riscv64 darwin/amd64 darwin/arm64 windows/amd64 windows/arm64
CHANNELS?=telegram discord feishu maixcam qq dingtalk whatsapp
CHANNEL_PACKAGE_VARIANTS?=full none $(CHANNELS)
empty:=
space:=$(empty) $(empty)
comma:=,
ALL_CHANNEL_OMIT_TAGS=$(subst $(space),$(comma),$(addprefix omit_,$(CHANNELS)))
FULL_BUILD_TAGS=with_tui
NOCHANNELS_TAGS=$(ALL_CHANNEL_OMIT_TAGS),with_tui
# Installation
INSTALL_PREFIX?=/usr/local
INSTALL_BIN_DIR=$(INSTALL_PREFIX)/bin
INSTALL_MAN_DIR=$(INSTALL_PREFIX)/share/man/man1
# Workspace and Skills
USER_HOME:=$(if $(SUDO_USER),$(shell eval echo ~$(SUDO_USER)),$(HOME))
CLAWGO_HOME?=$(USER_HOME)/.clawgo
WORKSPACE_DIR?=$(CLAWGO_HOME)/workspace
WORKSPACE_SKILLS_DIR=$(WORKSPACE_DIR)/skills
BUILTIN_SKILLS_DIR=$(CURDIR)/skills
WORKSPACE_SOURCE_DIR=$(CURDIR)/workspace
EMBED_WORKSPACE_DIR=$(CURDIR)/cmd/workspace
DEV_CONFIG?=$(if $(wildcard $(CURDIR)/config.json),$(CURDIR)/config.json,$(CLAWGO_HOME)/config.json)
DEV_ARGS?=--debug gateway run
DEV_WORKSPACE?=$(WORKSPACE_DIR)
# OS detection
UNAME_S:=$(shell uname -s)
UNAME_M:=$(shell uname -m)
# Platform-specific settings
ifeq ($(UNAME_S),Linux)
PLATFORM=linux
ifeq ($(UNAME_M),x86_64)
ARCH=amd64
else ifeq ($(UNAME_M),aarch64)
ARCH=arm64
else ifeq ($(UNAME_M),riscv64)
ARCH=riscv64
else
ARCH=$(UNAME_M)
endif
else ifeq ($(UNAME_S),Darwin)
PLATFORM=darwin
ifeq ($(UNAME_M),x86_64)
ARCH=amd64
else ifeq ($(UNAME_M),arm64)
ARCH=arm64
else
ARCH=$(UNAME_M)
endif
else
PLATFORM=$(UNAME_S)
ARCH=$(UNAME_M)
endif
BINARY_PATH=$(BUILD_DIR)/$(BINARY_NAME)-$(PLATFORM)-$(ARCH)
# Default target
all: build
## build: Build the clawgo binary for current platform
build: sync-embed-workspace
@echo "Building $(BINARY_NAME) for $(PLATFORM)/$(ARCH)..."
@mkdir -p $(BUILD_DIR)
@set -e; trap '$(MAKE) cleanup-embed-workspace' EXIT; \
$(GO) build $(GOFLAGS) $(BUILD_FLAGS) -tags "$(FULL_BUILD_TAGS)" $(LDFLAGS) -o $(BINARY_PATH) ./$(CMD_DIR); \
if [ "$(COMPRESS_BINARY)" = "1" ]; then \
if command -v upx >/dev/null 2>&1; then \
upx $(UPX_FLAGS) "$(BINARY_PATH)" >/dev/null; \
echo "Compressed binary with upx ($(UPX_FLAGS))"; \
else \
echo "Warning: COMPRESS_BINARY=1 but upx not found, skipping compression"; \
fi; \
fi
@echo "Build complete: $(BINARY_PATH)"
@ln -sf $(BINARY_NAME)-$(PLATFORM)-$(ARCH) $(BUILD_DIR)/$(BINARY_NAME)
## build-variants: Build current-platform full, no-channel, and per-channel binaries
build-variants: sync-embed-workspace
@echo "Building channel variants for $(PLATFORM)/$(ARCH): $(CHANNEL_PACKAGE_VARIANTS)"
@mkdir -p $(BUILD_DIR)
@set -e; trap '$(MAKE) cleanup-embed-workspace' EXIT; \
for variant in $(CHANNEL_PACKAGE_VARIANTS); do \
tags=""; \
suffix=""; \
if [ "$$variant" = "none" ]; then \
tags="$(NOCHANNELS_TAGS)"; \
suffix="-nochannels"; \
elif [ "$$variant" = "full" ]; then \
tags="$(FULL_BUILD_TAGS)"; \
elif [ "$$variant" != "full" ]; then \
for ch in $(CHANNELS); do \
if [ "$$ch" != "$$variant" ]; then \
tags="$${tags:+$$tags,}omit_$$ch"; \
fi; \
done; \
suffix="-$$variant"; \
fi; \
out="$(BUILD_DIR)/$(BINARY_NAME)-$(PLATFORM)-$(ARCH)$$suffix"; \
echo " -> $$variant"; \
if [ -n "$$tags" ]; then \
$(GO) build $(GOFLAGS) $(BUILD_FLAGS) -tags "$$tags" $(LDFLAGS) -o "$$out" ./$(CMD_DIR); \
else \
$(GO) build $(GOFLAGS) $(BUILD_FLAGS) $(LDFLAGS) -o "$$out" ./$(CMD_DIR); \
fi; \
if [ "$(COMPRESS_BINARY)" = "1" ] && command -v upx >/dev/null 2>&1; then \
upx $(UPX_FLAGS) "$$out" >/dev/null; \
fi; \
done
@echo "Variant builds complete: $(BUILD_DIR)"
## build-linux-slim: Build a Linux-only slim binary (no feature trimming, no channel disabling)
build-linux-slim: sync-embed-workspace
@echo "Building $(BINARY_NAME) slim profile for linux/$(ARCH)..."
@mkdir -p $(BUILD_DIR)
@set -e; trap '$(MAKE) cleanup-embed-workspace' EXIT; \
CGO_ENABLED=$(LINUX_SLIM_CGO) GOOS=linux GOARCH=$(ARCH) $(GO) build $(GOFLAGS) $(LINUX_SLIM_BUILD_FLAGS) -ldflags "$(BASE_LDFLAGS) $(EXTRA_LDFLAGS) $(LINUX_SLIM_LDFLAGS)" -o $(LINUX_SLIM_PATH) ./$(CMD_DIR); \
if [ "$(COMPRESS_BINARY)" = "1" ]; then \
if command -v upx >/dev/null 2>&1; then \
upx $(UPX_FLAGS) "$(LINUX_SLIM_PATH)" >/dev/null; \
echo "Compressed slim binary with upx ($(UPX_FLAGS))"; \
else \
echo "Warning: COMPRESS_BINARY=1 but upx not found, skipping compression"; \
fi; \
fi
@echo "Build complete: $(LINUX_SLIM_PATH)"
## build-all: Build clawgo for all configured platforms (override with BUILD_TARGETS="linux/amd64 ...")
build-all: sync-embed-workspace
@echo "Building for multiple platforms: $(BUILD_TARGETS)"
@mkdir -p $(BUILD_DIR)
@set -e; trap '$(MAKE) cleanup-embed-workspace' EXIT; \
for target in $(BUILD_TARGETS); do \
goos="$${target%/*}"; \
goarch="$${target#*/}"; \
out="$(BUILD_DIR)/$(BINARY_NAME)-$$goos-$$goarch"; \
if [ "$$goos" = "windows" ]; then out="$$out.exe"; fi; \
echo " -> $$goos/$$goarch"; \
CGO_ENABLED=0 GOOS=$$goos GOARCH=$$goarch $(GO) build $(GOFLAGS) $(BUILD_FLAGS) -tags "$(FULL_BUILD_TAGS)" $(LDFLAGS) -o "$$out" ./$(CMD_DIR); \
if [ "$(COMPRESS_BINARY)" = "1" ] && command -v upx >/dev/null 2>&1; then \
upx $(UPX_FLAGS) "$$out" >/dev/null; \
fi; \
done
@echo "All builds complete"
## build-all-variants: Build full, no-channel, and per-channel binaries for all configured platforms
build-all-variants: sync-embed-workspace
@echo "Building all channel variants for multiple platforms: $(BUILD_TARGETS)"
@mkdir -p $(BUILD_DIR)
@set -e; trap '$(MAKE) cleanup-embed-workspace' EXIT; \
for target in $(BUILD_TARGETS); do \
goos="$${target%/*}"; \
goarch="$${target#*/}"; \
for variant in $(CHANNEL_PACKAGE_VARIANTS); do \
tags=""; \
suffix=""; \
if [ "$$variant" = "none" ]; then \
tags="$(NOCHANNELS_TAGS)"; \
suffix="-nochannels"; \
elif [ "$$variant" = "full" ]; then \
tags="$(FULL_BUILD_TAGS)"; \
elif [ "$$variant" != "full" ]; then \
for ch in $(CHANNELS); do \
if [ "$$ch" != "$$variant" ]; then \
tags="$${tags:+$$tags,}omit_$$ch"; \
fi; \
done; \
suffix="-$$variant"; \
fi; \
out="$(BUILD_DIR)/$(BINARY_NAME)-$$goos-$$goarch$$suffix"; \
if [ "$$goos" = "windows" ]; then out="$$out.exe"; fi; \
echo " -> $$goos/$$goarch [$$variant]"; \
if [ -n "$$tags" ]; then \
CGO_ENABLED=0 GOOS=$$goos GOARCH=$$goarch $(GO) build $(GOFLAGS) $(BUILD_FLAGS) -tags "$$tags" $(LDFLAGS) -o "$$out" ./$(CMD_DIR); \
else \
CGO_ENABLED=0 GOOS=$$goos GOARCH=$$goarch $(GO) build $(GOFLAGS) $(BUILD_FLAGS) $(LDFLAGS) -o "$$out" ./$(CMD_DIR); \
fi; \
if [ "$(COMPRESS_BINARY)" = "1" ] && command -v upx >/dev/null 2>&1; then \
upx $(UPX_FLAGS) "$$out" >/dev/null; \
fi; \
done; \
done
@echo "All variant builds complete"
## package-all: Create compressed archives and checksums for full, no-channel, and per-channel build variants
package-all: build-all-variants
@echo "Packaging build artifacts..."
@set -e; cd $(BUILD_DIR); \
for target in $(BUILD_TARGETS); do \
goos="$${target%/*}"; \
goarch="$${target#*/}"; \
for variant in $(CHANNEL_PACKAGE_VARIANTS); do \
suffix=""; \
archive_suffix=""; \
if [ "$$variant" = "none" ]; then \
suffix="-nochannels"; \
archive_suffix="-nochannels"; \
elif [ "$$variant" != "full" ]; then \
suffix="-$$variant"; \
archive_suffix="-$$variant"; \
fi; \
bin="$(BINARY_NAME)-$$goos-$$goarch$$suffix"; \
if [ "$$goos" = "windows" ]; then \
bin="$$bin.exe"; \
archive="$(BINARY_NAME)-$$goos-$$goarch$$archive_suffix.zip"; \
zip -q -j "$$archive" "$$bin"; \
else \
archive="$(BINARY_NAME)-$$goos-$$goarch$$archive_suffix.tar.gz"; \
tar -czf "$$archive" "$$bin"; \
fi; \
done; \
done
@set -e; cd $(BUILD_DIR); \
if command -v sha256sum >/dev/null 2>&1; then \
sha256sum *.tar.gz *.zip 2>/dev/null | tee checksums.txt || true; \
elif command -v shasum >/dev/null 2>&1; then \
shasum -a 256 *.tar.gz *.zip 2>/dev/null | tee checksums.txt || true; \
fi
@echo "Package complete: $(BUILD_DIR)"
## sync-embed-workspace: Sync workspace seed files into cmd/workspace for go:embed
sync-embed-workspace:
@echo "✓ Embed assets ready in $(EMBED_WORKSPACE_DIR)"
@if [ ! -d "$(WORKSPACE_SOURCE_DIR)" ]; then \
echo "✗ Missing source workspace directory: $(WORKSPACE_SOURCE_DIR)"; \
exit 1; \
fi
@echo "Syncing workspace seed files for embedding..."
@mkdir -p "$(EMBED_WORKSPACE_DIR)"
@rsync -a --delete "$(WORKSPACE_SOURCE_DIR)/" "$(EMBED_WORKSPACE_DIR)/"
@echo "✓ Synced workspace to $(EMBED_WORKSPACE_DIR)"
## cleanup-embed-workspace: Remove synced embed workspace artifacts
cleanup-embed-workspace:
@if [ -d "$(EMBED_WORKSPACE_DIR)" ]; then \
find "$(EMBED_WORKSPACE_DIR)" -mindepth 1 ! -name 'embedkeep.txt' -exec rm -rf {} +; \
fi
@echo "✓ Cleaned embedded workspace artifacts"
## install: Install clawgo to system and copy builtin skills
install: build
@echo "Installing $(BINARY_NAME)..."
@mkdir -p "$(INSTALL_BIN_DIR)"
@set -e; \
PID_FILE="$(CLAWGO_HOME)/gateway.pid"; \
if [ -f "$$PID_FILE" ]; then \
PID="$$(cat "$$PID_FILE" 2>/dev/null || true)"; \
if [ -n "$$PID" ] && kill -0 "$$PID" 2>/dev/null; then \
echo "Detected running $(BINARY_NAME) process (PID=$$PID), stopping..."; \
kill "$$PID" 2>/dev/null || true; \
for _i in 1 2 3 4 5; do \
if ! kill -0 "$$PID" 2>/dev/null; then \
break; \
fi; \
sleep 1; \
done; \
if kill -0 "$$PID" 2>/dev/null; then \
echo "Process still running, force killing PID=$$PID..."; \
kill -9 "$$PID" 2>/dev/null || true; \
fi; \
fi; \
rm -f "$$PID_FILE"; \
fi; \
RUNNING_PIDS="$$(pgrep -x $(BINARY_NAME) 2>/dev/null || true)"; \
if [ -n "$$RUNNING_PIDS" ]; then \
echo "Detected additional running $(BINARY_NAME) process(es): $$RUNNING_PIDS, stopping..."; \
kill $$RUNNING_PIDS 2>/dev/null || true; \
sleep 1; \
RUNNING_PIDS="$$(pgrep -x $(BINARY_NAME) 2>/dev/null || true)"; \
if [ -n "$$RUNNING_PIDS" ]; then \
echo "Force killing remaining process(es): $$RUNNING_PIDS"; \
kill -9 $$RUNNING_PIDS 2>/dev/null || true; \
fi; \
fi; \
BIN_PATH="$(INSTALL_BIN_DIR)/$(BINARY_NAME)"; \
OVERWRITE_BIN="y"; \
RESET_WORKSPACE="n"; \
if [ -f "$$BIN_PATH" ]; then \
printf "Detected existing binary at %s. Overwrite executable? (y/n): " "$$BIN_PATH"; \
read -r OVERWRITE_BIN; \
printf "Reset workspace at %s (delete and reload)? (y/n): " "$(WORKSPACE_DIR)"; \
read -r RESET_WORKSPACE; \
fi; \
if [ "$$OVERWRITE_BIN" = "y" ]; then \
cp "$(BUILD_DIR)/$(BINARY_NAME)" "$$BIN_PATH"; \
chmod +x "$$BIN_PATH"; \
echo "Installed binary to $$BIN_PATH"; \
else \
echo "Skipped binary overwrite."; \
fi; \
if [ "$$RESET_WORKSPACE" = "y" ]; then \
echo "Resetting workspace: $(WORKSPACE_DIR)"; \
rm -rf "$(WORKSPACE_DIR)"; \
mkdir -p "$(WORKSPACE_DIR)"; \
rsync -a "$(WORKSPACE_SOURCE_DIR)/" "$(WORKSPACE_DIR)/"; \
echo "Workspace reloaded from $(WORKSPACE_SOURCE_DIR)"; \
fi
@echo "Installation complete!"
## install-user: Install clawgo to ~/.local and copy builtin skills
install-user:
@$(MAKE) install INSTALL_PREFIX=$(USER_HOME)/.local
## install-win: Prepare Windows install bundle (binary + PowerShell installer)
install-win: build-all
@echo "Preparing Windows install bundle..."
@mkdir -p "$(BUILD_DIR)/windows-install"
@cp "$(BUILD_DIR)/$(BINARY_NAME)-windows-amd64.exe" "$(BUILD_DIR)/windows-install/$(BINARY_NAME).exe"
@printf '%s\n' \
'$ErrorActionPreference = "Stop"' \
'$targetDir = Join-Path $$env:USERPROFILE ".clawgo\\bin"' \
'New-Item -ItemType Directory -Force -Path $$targetDir | Out-Null' \
'Copy-Item -Force ".\\clawgo.exe" (Join-Path $$targetDir "clawgo.exe")' \
'$$userPath = [Environment]::GetEnvironmentVariable("Path", "User")' \
'if (-not ($$userPath -split ";" | Where-Object { $$_ -eq $$targetDir })) {' \
' [Environment]::SetEnvironmentVariable("Path", "$$userPath;$$targetDir", "User")' \
'}' \
'Write-Host "Installed clawgo to $$targetDir"' \
'Write-Host "Reopen terminal then run: clawgo status"' \
> "$(BUILD_DIR)/windows-install/install-win.ps1"
@echo "✓ Bundle ready: $(BUILD_DIR)/windows-install"
@echo "Windows usage: copy folder to Windows, run PowerShell as user: ./install-win.ps1"
## uninstall: Remove clawgo from system
uninstall:
@echo "Uninstalling $(BINARY_NAME)..."
@rm -f $(INSTALL_BIN_DIR)/$(BINARY_NAME)
@echo "Removed binary from $(INSTALL_BIN_DIR)/$(BINARY_NAME)"
@echo "Note: Only the executable file has been deleted."
@echo "If you need to delete all configurations (config.json, workspace, etc.), run 'make uninstall-all'"
## uninstall-all: Remove clawgo and all data
uninstall-all:
@echo "Removing workspace and skills..."
@rm -rf $(CLAWGO_HOME)
@echo "Removed workspace: $(CLAWGO_HOME)"
@echo "Complete uninstallation done!"
## clean: Remove build artifacts
clean:
@echo "Cleaning build artifacts..."
@rm -rf $(BUILD_DIR)
@echo "Clean complete"
## test: Run Go tests without leaving build artifacts (cleans embed workspace and test cache)
test: sync-embed-workspace
@echo "Running tests..."
@set -e; trap '$(MAKE) cleanup-embed-workspace clean-test-artifacts' EXIT; \
$(GO) test ./...
## test-only: Backward-compatible alias for Go tests
test-only: test
## clean-test-artifacts: Remove test caches/artifacts generated by go test
clean-test-artifacts:
@$(GO) clean -testcache
## deps: Update dependencies
deps:
@$(GO) get -u ./...
@$(GO) mod tidy
## run: Build and run clawgo
run: build
@$(BUILD_DIR)/$(BINARY_NAME) $(ARGS)
## dev: Sync workspace and run the local gateway in foreground for debugging
dev: sync-embed-workspace
@if [ ! -f "$(DEV_CONFIG)" ]; then \
echo "✗ Missing config file: $(DEV_CONFIG)"; \
echo " Override with: make dev DEV_CONFIG=/path/to/config.json"; \
exit 1; \
fi
@set -e; trap '$(MAKE) -C $(CURDIR) cleanup-embed-workspace' EXIT; \
echo "Starting local gateway debug session..."; \
echo " Config: $(DEV_CONFIG)"; \
echo " Workspace: $(DEV_WORKSPACE)"; \
echo " Args: $(DEV_ARGS)"; \
CLAWGO_CONFIG="$(DEV_CONFIG)" $(GO) run $(GOFLAGS) ./$(CMD_DIR) $(DEV_ARGS)
## test-docker: Build and compile-check in Docker (Dockerfile.test)
test-docker: sync-embed-workspace
@echo "Running Docker compile test..."
@set -e; trap '$(MAKE) cleanup-embed-workspace' EXIT; \
docker build -f Dockerfile.test -t clawgo:test .
@echo "Docker compile test passed"
## help: Show this help message
help:
@echo "clawgo Makefile"
@echo ""
@echo "Usage:"
@echo " make [target]"
@echo ""
@echo "Targets:"
@grep -E '^## ' $(MAKEFILE_LIST) | sed 's/## / /'
@echo ""
@echo "Examples:"
@echo " make build # Build for current platform"
@echo " make dev # Run local gateway in foreground with debug logs"
@echo " make install # Install to /usr/local/bin"
@echo " make install-user # Install to ~/.local/bin"
@echo " make uninstall # Remove from /usr/local/bin"
@echo " make install-skills # Install skills to workspace"
@echo ""
@echo "Environment Variables:"
@echo " INSTALL_PREFIX # Installation prefix (default: /usr/local)"
@echo " WORKSPACE_DIR # Workspace directory (default: ~/.clawgo/workspace)"
@echo " DEV_CONFIG # Config path for make dev"
@echo " DEV_ARGS # CLI args for make dev (default: --debug gateway run)"
@echo " DEV_WORKSPACE # Workspace path used by make dev"
@echo " VERSION # Version string (default: git describe)"
@echo " STRIP_SYMBOLS # 1=strip debug/symbol info (default: 1)"
@echo ""
@echo "Current Configuration:"
@echo " Platform: $(PLATFORM)/$(ARCH)"
@echo " Binary: $(BINARY_PATH)"
@echo " Install Prefix: $(INSTALL_PREFIX)"
@echo " Workspace: $(WORKSPACE_DIR)"