-
Notifications
You must be signed in to change notification settings - Fork 211
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (30 loc) · 1.43 KB
/
Makefile
File metadata and controls
39 lines (30 loc) · 1.43 KB
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
38
# Makefile for ai-helpers
# Container runtime (podman or docker)
CONTAINER_RUNTIME ?= $(shell command -v podman 2>/dev/null || echo docker)
# claudelint image
CLAUDELINT_IMAGE = ghcr.io/stbenjam/claudelint:main
# Detect if SELinux is enforcing and add security option
SELINUX_OPT := $(shell if command -v getenforce >/dev/null 2>&1 && [ "$$(getenforce 2>/dev/null)" = "Enforcing" ]; then echo "--security-opt label=disable"; fi)
.PHONY: help
help: ## Show this help message
@echo "Available targets:"
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-20s\033[0m %s\n", $$1, $$2}'
.PHONY: lint
lint: ## Run plugin linter (verbose, strict mode)
@echo "Running claudelint with $(CONTAINER_RUNTIME)..."
$(CONTAINER_RUNTIME) run --rm $(SELINUX_OPT) -v $(PWD):/workspace:Z ghcr.io/stbenjam/claudelint:main -v --strict
.PHONY: lint-pull
lint-pull: ## Pull the latest claudelint image
@echo "Pulling latest claudelint image..."
$(CONTAINER_RUNTIME) pull $(CLAUDELINT_IMAGE)
.PHONY: update
update: ## Update plugin documentation and website data
@echo "Fixing frontmatter quotes, if any..."
@python3 scripts/fix_frontmatter_quotes.py
@echo "Syncing marketplace versions..."
@python3 scripts/sync_marketplace_versions.py
@echo "Updating plugin documentation..."
@python3 scripts/generate_plugin_docs.py
@echo "Building website data..."
@python3 scripts/build-website.py
.DEFAULT_GOAL := help