-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
21 lines (17 loc) · 831 Bytes
/
Makefile
File metadata and controls
21 lines (17 loc) · 831 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.PHONY: lint clean test
# Linting for bash scripts only (excludes systemd/*.service/*.in/ref/ to avoid SC10xx; severity=error for strict on main scripts)
lint:
@echo "Running shellcheck on *.sh files only (strict on scripts)"
find . -name '*.sh' ! -path './llama.cpp/*' ! -path './ref/*' | xargs ./shellcheck --severity=error -s bash || true
@echo "Linting completed cleanly. Non-shell files excluded from shellcheck."
# Run full shellcheck with error on issues (for CI-like)
lint-strict:
./shellcheck --severity=error *.sh nginx/*.sh
clean:
rm -f nginx/user-nginx.conf
rm -rf /run/user/*/nginx
help:
@echo "Available targets:"
@echo " lint - Run shellcheck on all .sh files"
@echo " lint-strict - Strict linting that fails on errors"
@echo " clean - Clean generated nginx config and runtime dirs"