-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (21 loc) · 805 Bytes
/
Copy pathMakefile
File metadata and controls
28 lines (21 loc) · 805 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
.PHONY: all build test demo demo-cast install clean
all: build
build:
go build -o bin/skillscope ./cmd/skillscope
test:
go test -race -count=1 ./...
install:
go install ./cmd/skillscope
# Boot the TUI pointed at testdata/.
demo: build
./bin/skillscope --demo-home $(CURDIR)/testdata/home --demo-repo $(CURDIR)/testdata/project
# Regenerate the asciinema cast in docs/assets/demo.cast. Drives skillscope
# via tmux with a scripted keystroke sequence (matrix → tree → diff →
# preview → scroll → search) and synthesises a cast file from frame
# captures. Needs tmux + python3 on PATH.
demo-cast: build
@command -v tmux >/dev/null || { echo "tmux required"; exit 1; }
@command -v python3 >/dev/null || { echo "python3 required"; exit 1; }
./scripts/record-cast.py
clean:
rm -rf bin/