My Makefile looks like this:
%.foo: %.bar cp $< $@ test: *.foo echo *.foo I have 2 files in the directory: a.bar and 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 a.foo and b.foo. How to achieve that?