MCPcopy Index your code
hub / github.com/Songmu/make2help

github.com/Songmu/make2help @v0.2.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.2.1 ↗ · + Follow
13 symbols 31 edges 6 files 2 documented · 15%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

make2help

Test Status MIT License PkgGoDev

Description

Utility for self-documented Makefile

It scans Makefiles and shows rules with documents. It considers the comment line started with double hash (##) just before a rule is written as document of the rule.

Installation

Binaries are available.

https://github.com/Songmu/make2help/releases

You can also go install.

% go install github.com/Songmu/make2help/cmd/make2help@latest

Synopsis

% make2help
cover:             Take coverage
deps:              Install dependencies
dev-deps:          Install dependencies
help:              Show help
lint:              Lint
release:           Release the binaries
test:              Run tests

Options

-all                display all rules in the Makefiles

Example

With defining help target in Makefile and setting it to .DEFAULT_GOAL, you can see help messages just type make.

.DEFAULT_GOAL := help

## Run tests
test: deps
    go test ./...

## Install dependencies
deps:
    go get -d -v ./...

## Show help
help:
    @make2help $(MAKEFILE_LIST)

.PHONY: test deps help
% make
deps:              Install dependencies
help:              Show help
test:              Run tests

Author

Songmu

Core symbols most depended-on inside this repo

scan
called by 2
make2help.go
merge
called by 2
rules.go
string
called by 2
rules.go
Run
called by 1
cli.go
parseFlags
called by 1
cli.go
help
called by 1
cli.go
indentAndRules
called by 1
rules.go
main
called by 0
cmd/make2help/main.go

Shape

Function 7
Method 4
Struct 1
TypeAlias 1

Languages

Go100%

Modules by API surface

rules.go4 symbols
cli.go4 symbols
make2help_test.go2 symbols
rules_test.go1 symbols
make2help.go1 symbols
cmd/make2help/main.go1 symbols

For agents

$ claude mcp add make2help \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact