Skip to content

vulthane/makefile-docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published