-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (30 loc) · 886 Bytes
/
Copy pathMakefile
File metadata and controls
39 lines (30 loc) · 886 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
PKGS := ./...
BIN := bin/agy-reader
CMD := .
GOFILES := $(shell find . -maxdepth 1 -name '*.go') $(shell find internal -name '*.go')
.PHONY: fmt vet test race build check clean install-skills
fmt:
gofmt -w $(GOFILES)
vet:
go vet $(PKGS)
test:
go test $(PKGS)
race:
go test -race $(PKGS)
build:
go build -o $(BIN) $(CMD)
check: fmt vet test build
clean:
rm -rf bin
# Install first-party skills (tracked under skills/) into the agent skill dirs
# as relative symlinks. Those dirs (.claude/skills, .agents/skills) are
# gitignored install targets; skills/ is the source of truth. Idempotent.
install-skills:
@for d in skills/*/; do \
name=$$(basename "$$d"); \
for agent in .claude .agents; do \
mkdir -p "$$agent/skills"; \
ln -sfn "../../skills/$$name" "$$agent/skills/$$name"; \
echo "linked $$agent/skills/$$name -> ../../skills/$$name"; \
done; \
done