forked from tmck-code/yet-another-statusline
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (26 loc) · 936 Bytes
/
Copy pathMakefile
File metadata and controls
32 lines (26 loc) · 936 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
STATUSLINE_SRC := $(CURDIR)/claude/statusline_command.py
THEMES_SRC := $(CURDIR)/claude/statusline/themes.py
MON_SRC := $(CURDIR)/claude/mon.py
INSTALL_DIR := $(HOME)/.claude
install:
@mkdir -p "$(INSTALL_DIR)/statusline"
@ln -sf $(STATUSLINE_SRC) "$(INSTALL_DIR)/statusline_command.py" || true
@ln -sf $(THEMES_SRC) "$(INSTALL_DIR)/statusline/themes.py" || true
@echo "installed -> $(INSTALL_DIR)/statusline_command.py"
@echo "installed -> $(INSTALL_DIR)/statusline/themes.py"
demo:
@python3 claude/statusline/demo.py
demo/img:
@python3 claude/statusline/demo.py --snapshots demo/
mon/install:
@for dir in $(INSTALL_DIRS); do \
if ! test -d "$$dir"; then \
echo "directory $$dir does not exist, skipping"; \
continue; \
fi; \
ln -sf $(MON_SRC) "$$dir/mon.py"; \
echo "installed mon -> $$dir"; \
done
mon/run:
uv run python claude/mon.py
.PHONY: install demo demo/img mon/install mon/run