help-make
[Top][All Lists]
Advanced

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

Re: archive members - a HUGE confusion


From: Paul Smith
Subject: Re: archive members - a HUGE confusion
Date: Sun, 09 May 2010 09:31:42 -0400

On Sun, 2010-05-09 at 01:23 -0700, Payal wrote:
> On Sat, May 08, 2010 at 03:58:48PM -0700, Philip Guenther wrote:
> > On Sat, May 8, 2010 at 4:25 AM, Payal <address@hidden> wrote:
> > ...
> > > $ cat Makefile2
> > > libfashion.a : libfashion(ready.o)
> > >        @ranlib $@
> > > libfashion.a(ready.o) : ready.o
> > >        ar rv libfashion.a $^
> > ...
> > > Why is ar trying to make libfashion when I told it EXPLICTLY to make 
> > > libfashion.a?
> > > Strangely, when I remove first 2 lines, ar behaves correctly like below.
> > 
> > Did you actually *read* those first two lines when you deleted them?
> > I.e., "in order to build libfashion.a, first build..."
> 
> Thanks a lot, Philip. I will try it the first thing when I go to my work
> PC. But still that doesn't answer,
> | Why is ar trying to make libfashion when I told it EXPLICTLY to make
> | libfashion.a?

Yes it does.  Look again at what you wrote:

> > libfashion.a : libfashion(ready.o)
                            ^^^

In programming, you HAVE to pay attention to the little things, like
extra commas or missing extensions.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.mad-scientist.net
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist





reply via email to

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