-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (31 loc) · 945 Bytes
/
Makefile
File metadata and controls
37 lines (31 loc) · 945 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
.PHONY: install uninstall test clean help
PREFIX ?= /usr/local
BINDIR ?= $(PREFIX)/bin
SCRIPT_NAME = gh-switch
help:
@echo "gh-switch - GitHub Account Switcher"
@echo ""
@echo "Usage:"
@echo " make install Install gh-switch"
@echo " make uninstall Uninstall gh-switch"
@echo " make test Run tests"
@echo " make clean Clean temporary files"
install:
@echo "Installing gh-switch to $(BINDIR)..."
@chmod +x bin/gh-switch-standalone
@sudo cp bin/gh-switch-standalone $(BINDIR)/$(SCRIPT_NAME)
@echo "✓ Installed successfully"
@echo "Run 'gh-switch init' to get started"
uninstall:
@echo "Uninstalling gh-switch..."
@sudo rm -f $(BINDIR)/$(SCRIPT_NAME)
@echo "✓ Uninstalled"
@echo "Note: Config files in ~/.config/gh-switch/ were preserved"
test:
@echo "Running tests..."
@bash tests/test_basic.sh
clean:
@echo "Cleaning temporary files..."
@rm -f *.tmp *.bak
@rm -rf build/ dist/
@echo "✓ Cleaned"