I'm trying to use$(patsubst %-%,%:%,$(MAKECMDGOALS))to replace dashes with colons in the make target but it has no effect.How could I achieve this?
Replace characters in Makefile target
make;replace
You can only have a single wildcard in patsubst. To replace all dashes with colons, you can use subst:$(subst -,:,$(MAKECMDGOALS))