-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (27 loc) · 930 Bytes
/
Makefile
File metadata and controls
32 lines (27 loc) · 930 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
SCRIPT_NAME = claude-auto-resume
.PHONY: install uninstall test
install:
@echo "Installing $(SCRIPT_NAME) to $(BINDIR)..."
@mkdir -p $(BINDIR)
@cp claude-auto-resume.sh $(BINDIR)/$(SCRIPT_NAME)
@chmod +x $(BINDIR)/$(SCRIPT_NAME)
@echo "Installation complete. You can now run '$(SCRIPT_NAME)' from anywhere."
uninstall:
@echo "Uninstalling $(SCRIPT_NAME)..."
@rm -f $(BINDIR)/$(SCRIPT_NAME)
@echo "Uninstallation complete."
test:
@echo "Testing script syntax..."
@bash -n claude-auto-resume.sh
@echo "Syntax check passed."
help:
@echo "Available targets:"
@echo " install - Install the script globally to $(BINDIR)"
@echo " uninstall - Remove the script from $(BINDIR)"
@echo " test - Test script syntax"
@echo " help - Show this help message"
@echo ""
@echo "Environment variables:"
@echo " PREFIX - Installation prefix (default: /usr/local)"