Currently i have this
JavaScript
x
test.%:
echo $*
I want to do something like
JavaScript
test.%.%:
echo $1 && echo $2
Is it possible to fo like that
Advertisement
Answer
You can only have one wildcard per pattern, but you can further process the pattern to extract the information you want. For your example above, this would work:
JavaScript
test.%:
echo $(basename $*) && echo $(subst .,,$(suffix $*))