This question already has an answer here:
Makefile looks like this:
%.foo: %.bar cp $< $@ test: *.foo echo *.foo
I have 2 files in the directory:
b.bar. When I run
make test it outputs:
cp b.bar *.foo echo *.foo *.foo
It also creates a file
*.foo in the current directory.
I am actually expecting to see this:
cp a.bar a.foo cp b.bar b.foo echo *.foo a.foo b.foo
And also creating
b.foo. How to achieve that?