--- aliases: - /2022/01/make categories: - linux date: '2022-01-07' layout: post title: Make for repeated commands --- I often find myself repeat the same commands in a project, for example in Openstack/Kubernetes, but also when I need to interface with Docker (build/push image). Instead of relying on bash history or writing a few bash scripts, it is just easier to write a `Makefile`, even if you do not use the Make dependencies and you just use it as a collection of useful commands. Here is a template to start from, which supports `make list` to show available targets and shows how to pass arguments to a command: *