[Top][All Lists]

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

Re: GNU Make - Problem defining pattern rules

From: Henrik Carlqvist
Subject: Re: GNU Make - Problem defining pattern rules
Date: Thu, 29 Apr 2010 08:31:25 +0200
User-agent: Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.)

Dave <> wrote:

> When I execute:
> make src/application/SampleApplication
> I see  "Building a Binary"
> When I execute
> make src/libraries/PluginOne/
> I see "make: Nothing to be done for `src/libraries/PluginOne/
> Can anyone explain why the pattern rule for the binary appears to work,
> but the pattern rule for a .so library doesn't?

The "Nothing to be done..." message means that gnu makes considers the
target to already be up to date. This means in your case that
src/libraries/PluginOne/ already exists and is newer than
src/libraries/PluginOne/libPluginOne.o. It also means that
src/libraries/PluginOne/libPluginOne.o is newer than any of its

> ----------------------------------------------------------
> # Some Pattern Rules
> #
> %.o: %.cpp
>         @echo "Building Object Files"
> %.o
>         @echo "Building a Library"
> %: %.o
>         @echo "Building a Binary"

regards Henrik
The address in the header is only to prevent spam. My real address is:
hc3(at) Examples of addresses which go to spammers:
root@localhost postmaster@localhost

reply via email to

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