|
-
February 19th, 2010, 10:52 AM
#1
Makefile implicit rule
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,
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|