Skip to content

make_gadgets

This is a collection of utility make targets that can be imported to any makefile.

Usage

Add the following import statement to the top of your Makefile:

include make_gadgets/make_gadgets.mk

or

include make_gadgets/docker/docker-tools.mk

for the docker related gadgets/targets

help target

When imported this project provides a 'help' target. Any target preceded by '##' will print with 'make help'

example Makefile with help comments:

include make_gadgets/Makefile

hello_world: ## This target prints "Hello, World!"
    echo "Hello, World!"

now running the help target:

make help

yields the following output:

Usage: make <target>
  hello_world  This target prints "Hello, World!"

Docker targets

This project also contains a Makefile with targets useful for Docker. For more information check out the provided readme:docker/README.md