DevOps Articles

Curated articles, resources, tips and trends from the DevOps World.

Make your makefile help messages beautiful with awk | Padok

2 years ago www.padok.fr
Make your makefile help messages beautiful with awk | Padok

Summary: This is a summary of an article originally published by the source. Read the full original article here →

https://www.padok.fr/ https://www.padok.fr/en/blog https://www.padok.fr/en/blog/tag/technology https://www.padok.fr/en/blog/beautiful-makefile-awk # The help target prints out all targets with their descriptions organized # beneath their categories.

The printf command is like bash's echo, with the added ability to inject values into strings, like C's printf function.

The string given to printf has some escape codes that set text color just like in the earlier printf command.

So this action prints section names like this: The awk program processes the Makefile's lines one by one, in order.

Made with pure grit © 2024 Jetpack Labs Inc. All rights reserved. www.jetpacklabs.com