Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Makefile docs

Make AWK

Display your makefile documentation with makefile-docs.awk, a POSIX-compatible extension of a simple awk one-liner.

Getting Started

Prerequisites

This script requires:

  • AWK
  • GNU Make (now installed by default on POSIX-compatible operating systems such as macOS, ubuntu, ...)

Usage

Insert this script in your Makefile

help:
 @awk \
  -v tab_width=2 \
  -F ':.*?##' \
  -f makefile-docs.awk \
  $(MAKEFILE_LIST)

In your Makefile, add section titles, arguments, descriptions to your commands

### Section title:

command: ## [args] Description
 @echo "command"

Run the make help command

make help

License

Distributed under the MIT License. See LICENSE for more information.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages