-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (31 loc) · 865 Bytes
/
Makefile
File metadata and controls
36 lines (31 loc) · 865 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
.PHONY: install test lint clean help
# Default target
help:
@echo "zs - Zed Smart Setup"
@echo ""
@echo "Available targets:"
@echo " install Install zs locally"
@echo " test Run tests (requires shellcheck)"
@echo " lint Lint shell scripts"
@echo " clean Remove installed files"
@echo " help Show this help message"
install:
@echo "Installing zs..."
@./install.sh
test: lint
@echo "Running tests..."
@bash -n install.sh
@bash -n src/zs
@echo "All tests passed!"
lint:
@echo "Linting shell scripts..."
@if command -v shellcheck >/dev/null 2>&1; then \
shellcheck install.sh src/zs hooks/git/*; \
else \
echo "Warning: shellcheck not installed. Install it for linting."; \
fi
clean:
@echo "Cleaning up..."
@rm -rf ~/.config/zs
@rm -f ~/.local/bin/zs
@echo "Clean complete. Run 'make install' to reinstall."