-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (28 loc) · 871 Bytes
/
Makefile
File metadata and controls
32 lines (28 loc) · 871 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
PREFIX ?= /usr/local
BINDIR ?= $(PREFIX)/bin
ZSHDIR ?= $(PREFIX)/share/zsh/site-functions
.PHONY: install uninstall check-deps
install: check-deps
@echo "Installing stak..."
@mkdir -p $(BINDIR)
@mkdir -p $(ZSHDIR)
install -m 755 stak $(BINDIR)/stak
install -m 644 _stak $(ZSHDIR)/_stak
@echo ""
@echo "✓ Installed stak to $(BINDIR)/stak"
@echo "✓ Installed zsh completion to $(ZSHDIR)/_stak"
@echo ""
@echo "For interactive features, install fzf:"
@echo " brew install fzf # macOS"
@echo " apt install fzf # Debian/Ubuntu"
@echo " pacman -S fzf # Arch"
@echo ""
@echo "Or run: stak setup-interactive"
uninstall:
@echo "Uninstalling stak..."
rm -f $(BINDIR)/stak
rm -f $(ZSHDIR)/_stak
@echo "✓ Uninstalled"
check-deps:
@command -v git >/dev/null 2>&1 || { echo "Error: git is required"; exit 1; }
@echo "✓ git found"