Today, we are going to revisit our beloved Makefiles, you can actually make nice small easy functions to help
your Makefile survive critique and spaghetti code.
Make has even built in functional map using its
Here is an example of a Makefile function
cf-deploy=aws cloudformation deploy --stack-name $1 $(if $2, --parameter-overrides )
Which you can call in your targets with
$(call cf-deploy,stack-name,key=value key=value)