-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (28 loc) · 877 Bytes
/
Makefile
File metadata and controls
34 lines (28 loc) · 877 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
.PHONY: help install format format\:fix lint lint\:fix
# Default target
help:
@echo "Usage: make [target]"
@echo ""
@echo "Targets:"
@echo " install Run dotfiles installer"
@echo " format Check formatting (sh/zsh/fish/lua/toml/json)"
@echo " format:fix Apply formatting (sh/zsh/fish/lua/toml/json)"
@echo " lint Run format checks + shellcheck"
@echo " lint:fix Apply format fixes then run lint"
# Install dotfiles
install:
./install.sh
# Check formatting (for CI)
format:
./scripts/format.sh --check
# Apply formatting fixes
format\:fix:
./scripts/format.sh
# Lint shell scripts + formatting checks
lint: format
@echo "Running shellcheck..."
@shellcheck -S error -s sh install.sh
@shellcheck -S error -s bash .zshenv .zprofile .zshrc
@echo "Done."
# Apply formatter fixes then run lint checks
lint\:fix: format\:fix lint