Skip to content

Commit 2c10fe1

Browse files
authored
feat: add conditional help target in Makefile (#36)
Add RULES_SKIP_HELP environment variable check to conditionally skip help target. This allows external tools to suppress help output when needed.
1 parent aebdd26 commit 2c10fe1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,10 @@ mcp-sync: ## Sync MCP configuration from .ruler/mcp.json to CLI tools.
6262
# HELP
6363
# ====================================================================================
6464

65+
ifeq ($(RULES_SKIP_HELP),)
6566
.PHONY: help
6667
help: ## Show this help message.
6768
@echo "Usage: make <target>"
6869
@echo
6970
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z0-9_-]+:.*?## / {printf " \033[36m%-20s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
71+
endif

0 commit comments

Comments
 (0)