Passing Makefile arguments to a command, as they are typed in the command line.
In my Python projects, I use a combination of Duty (my task runner) and make.
My Makefile declares the same tasks as the ones written in duties.py, but in a generic manner:
TASKS = check test release
.PHONY: $(TASKS)
$(TASKS):
@poetry run duty $@
So, instead of running poetry run duty check, I can run make check. Convenient, right?
Except that some duties (tasks) accept arguments. For example:
poetry run duty release version=0.1.2
So how do I allow the make equivalent?
make release version=0.1.2





