I have the following lines to generate a wildcard in a set of rules preceeded by a path added via %:
tmp = $(wildcard cmd/*.tcl)
DEP_CMD=$(foreach OBJ, % ,$(addprefix %, $(tmp)))
The wildcard failes because it is only filled in once for the first % only.
So I tried to use the eval function to re-evaluate the wildcard for all separate %: