Run a Makefile target with argument
Define a new Makefile
task
...
new-post: ## Create a new post with the given title (Use this with title=blah blah)
hugo new posts/`date +%s`-$(title).md
...
Use it from the command line by providing a title when calling this task
make new-post title=hello-world
See full Makefile