In a GNU Makefile, if I use *
in a prerequisite or $(wildcard)
in an assignment it will use shell expansion to find matching files.
Is there a way to do the equivalent for phony targets? For example:
.PHONY: compile-1 compile-2
compile-all: compile-*
This is similar to this question but I don't want to have to manually list the targets as in AVAILABLE_MODELS
.
"No, you have to list them" is an acceptable answer.