Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (32 loc) · 1.74 KB
/
Copy pathMakefile
File metadata and controls
43 lines (32 loc) · 1.74 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
39
40
41
42
43
# Monorepo root helpers. Component builds stay in server/, sdk-*/, samples-*/.
ROOT_DIR := $(abspath .)
GENERATED_CODE_PATHS := \
server/gen/dexpb \
sdk-go/gen/dexpb \
sdk-java/src/main/java/io/superdurable/gen \
sdk-python/dex/dexpb \
sdk-typescript/src/gen
.PHONY: help ci-runner-check copyright copyright-check generated-code generated-code-check githooks docs-prose-check docs-prose-fix
help: ## Show targets
@grep -E '^[a-zA-Z_-]+:.*?##' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " %-22s %s\n", $$1, $$2}'
githooks: ## Install commit-msg and pre-commit hooks (Cursor co-author + docs prose)
bash script/install-githooks
docs-prose-check: ## Fail when product-doc MDX prose uses inline backticks
python3 script/docs_no_inline_backticks.py
docs-prose-fix: ## Replace inline backticks with **bold** in product-doc MDX prose
python3 script/docs_no_inline_backticks.py --fix
ci-runner-check: ## Verify CI workflows route main pushes to self-hosted runners
bash .github/scripts/check-ci-runners.sh
copyright: ## Add or upgrade license headers using the legacy manifest
cd server && GOWORK=off go run ./cmd/tools/copyright -rootDir "$(ROOT_DIR)"
copyright-check: ## Verify license classifications, body hashes, and headers
cd server && GOWORK=off go run ./cmd/tools/copyright -rootDir "$(ROOT_DIR)" -verifyOnly
generated-code: ## Regenerate all checked-in code derived from protos
$(MAKE) -C protos proto
generated-code-check: generated-code ## Verify checked-in generated code is current
@changes="$$(git status --short --untracked-files=all -- $(GENERATED_CODE_PATHS))"; \
if [ -n "$$changes" ]; then \
echo "Generated code is outdated. Run 'make generated-code' and commit every change:"; \
printf '%s\n' "$$changes"; \
exit 1; \
fi