Commit b05b712d authored by xuwang's avatar xuwang
Browse files

chore(makefile): use shared help.mk for the dev repo's own help



Replace the bespoke inline `help` target with `include help.mk`, so the
OTICA repo's own `make help` gets the same help system consumers see --
the version line, upgrade-check, and target listing -- instead of a
parallel implementation that can drift. Also define OTICA_REPO (consumed
by release.mk / update-otica). help.mk's `all: help` provides the default
goal, so the explicit .DEFAULT_GOAL is no longer needed.

Co-Authored-By: default avatarClaude Opus 4.8 <noreply@anthropic.com>
parent 433c7952
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -5,16 +5,11 @@
## `include ${OTICA_DIR}/makefiles/*.mk` modules.

OTICA_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST))))
.DEFAULT_GOAL := help
OTICA_REPO ?= $(shell git -C $(OTICA_DIR) config --get remote.origin.url 2>/dev/null)

# Release/changelog targets (version, release-preview, release, release-{patch,minor,major}).
include $(OTICA_DIR)/makefiles/help.mk
include $(OTICA_DIR)/makefiles/release.mk

.PHONY: help
help: ## show this help
	@grep -hE '^[a-zA-Z_-]+:.*## .*$$' $(MAKEFILE_LIST) \
		| awk 'BEGIN {FS = ":.*?## "}; {printf "  \033[36m%-22s\033[0m %s\n", $$1, $$2}'

.PHONY: validate
validate: ## run all validation checks (parse + deps + scripts)
	@tests/validate.sh all