# The VULCAN monorepo. Each file under make/ holds one job; `make help` lists every target.
# make/project.mk is not included here: it is the per-package include, used by packages/*/Makefile.

# A bare `make` prints the target list; `make build` builds.
.DEFAULT_GOAL := help

# Node keeps a compile cache for the tools make runs (ESLint, the type checker), by default in the system
# temp (/tmp/node-compile-cache). It goes in the repository instead, gitignored, like every other scratch
# file (V-B-08); the packages inherit it, and their own Makefile sets the same path when run alone.
export NODE_COMPILE_CACHE ?= $(CURDIR)/.agents/local/cache/node-compile

# Every package directory under packages/. Each per-package target (`<pkg>`, `update-<pkg>`,
# `lint-<pkg>`, `lint-fix-<pkg>`, `test-<pkg>`) is generated from this list - add a package here and
# every target exists for it.
PACKAGES := okf atlas cli

# The npm name of a package directory, read from its package.json: $(call PKG_NAME,atlas).
PKG_NAME = $(shell sed -n 's/^  "name": "\(.*\)",$$/\1/p' packages/$(1)/package.json)

# The repository the wiki's GitHub links point into, for the shipped wiki-links-check gate.
WIKI_REPO := VENIZIA-AI/vulcan
# The wiki and the knowledge bundle describe the files of a consumer project (.agents/hooks.json, .agents/local/profile.json),
# so a backticked path is not held to this repository's tracked files; only the GitHub links and concept resources are.
WIKI_LINKS_FLAGS := --skip-prose docs/wiki/content,.agents/knowledge

# The shipped VULCAN targets (sync, doctor, okf-*, surface/symbols/releases, the wiki gates), exactly as every project gets them.
-include node_modules/@venizia/vulcan/base/make/vulcan.mk
include make/build.mk
include make/lint.mk
include make/test.mk
include make/gates.mk
include make/release.mk
include make/evals.mk
include make/help.mk
