help-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GNU Make - Problem defining pattern rules


From: Dave
Subject: Re: GNU Make - Problem defining pattern rules
Date: Thu, 29 Apr 2010 05:13:15 -0700 (PDT)
User-agent: G2/1.0

On Apr 29, 12:24 pm, Manuel Collado <m.coll...@domain.invalid> 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]