Hello,

I could not find a proper section for posting, so I'm posting in this C++ one...

I'm writing a Makefile, and there is a behavior that I don't understand. Here's what I'm doing:

Makefile content:

%.test:
$(MAKE) $*.subrule

foo.subrule:
@echo "foo"

In order to build my target, I do:
$ make foo.test

And I get this error:
make[1]: *** No rule to make target `foo.subrule'. Stop.

Basically, what I want is to somewhat mimic specialization: my %.test is a generic rule, and provide some specialized ones, like foo.subrule, bar.subrule, etc.
Does someone have an idea about this issue, or a way to do what I seek?

Thanks,