Re: GNU Make - Problem defining pattern rules
Dave <[email protected]> Thu, 29 Apr 2010 05:13:15 -0700 (PDT)
| Newsgroups | gmane.comp.gnu.utils |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <2fe87d1e-9350-446c-8131-418e72178388@a21g2000yqn.googlegroups.com> |
On Apr 29, 12:24 pm, Manuel Collado <[email protected]> wrote: > Dave escribió: > > After expanding the variable values and stripping down the file paths, > it seems that the relevant part of your Makefile can be reduced to: > > %.so: %.o > @echo "Building a Library" > > libPluginOne.so: PluginOne.o ... > > The last, explicit rule doesn't match the first, implicit rule (note the > 'lib' prefix), and contains no actions, so ... "Nothing to do ..." > Thanks, I didn't realise the 'lib' was being treated as a prefix, I had assumed that % would have matched the whole target including prefix. After modifying the pattern rule to: lib%.so: %.o I saw my message "Building Library" being printed. Thanks