# filter out target and keep the rest as args
PRIMARY_TARGET:=$(firstword$(MAKECMDGOALS))ARGS:=$(filter-out$(PRIMARY_TARGET),$(MAKECMDGOALS)).PHONY:git-hooksgit-hooks:git config core.hooksPath ./git-hooks;.PHONY:initinit:git-hooks.PHONY:fmtfmt:initcargo fmt.PHONY:test-alltest-all:.PHONY:testtest:initcargo test ${ARGS} -- --nocapture --test-threads=1.PHONY:buildbuild:initcargo build.DEFAULT_GOAL=build# Target name % means that it is a rule that matches anything, @: is a recipe;
# the : means do nothing
%:@: