I am currently writing a Makefile
that allows me to launch some commands easily, but I want to be able to pass additional arguments. I cant seem to find any documentation about how to do it.
My simplified Makefile is below;
.PHONY: all
info: header usage
define HEADER
MY PROJECT HEADER
endef
export HEADER
header:
@echo "$$HEADER"
usage:
@echo "make test Test environment"
test: header run_test
run_test:
phpunit
At the moment if i type make test
it will run my phpunit test suite.
What i want to be able to do is add any additional arguments after, for example make test --filter=thistest
.. This argument would be passed to the phpunit command which will then look like phpunit --filter=thistest
among other arguemnts.