code
subdirs = dist-aa.c
dist = $(subdirs:%=dist-%)
dist1 = $(subdirs:dist-%=%)
all:
$(warning $(dist))
$(warning $(dist1))
.PHONY: all
~
~
Result:
%
通配符