The make command is used to automate the reuse of multiple commands in certain directory structure.
An example for that would be the use of terraform init, terraform plan, and terraform validate while having to change different subscriptions in Azure. This is usually done in the following steps:
az account set --subscription "Subscription - Name"
terraform init
How the make command can help us is it can automate all of that in just one go:
make tf-init
make [ -f makefile ] [ options ] ... [ targets ] ...
hello-world:
echo "Hello, World!"
hello-bobby:
echo "Hello, Bobby!"
touch-letter:
echo "This is a text that is being inputted into our letter!" > letter.txt
clean-letter:
rm letter.txt
5. Execute make touch-letter - This creates a text file named letter.txt and populates a line in it.
(linoxide - linux make command examples)[https://linoxide.com/linux-make-command-examples/] (makefiletutorial.com - the name itself gives it out)[https://makefiletutorial.com/]