[Top][All Lists]

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

Re: archive members - a HUGE confusion

From: Philip Guenther
Subject: Re: archive members - a HUGE confusion
Date: Sat, 8 May 2010 15:58:48 -0700

On Sat, May 8, 2010 at 4:25 AM, Payal <address@hidden> wrote:
> $ cat Makefile2
> libfashion.a : libfashion(ready.o)
>       address@hidden $@
> 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..."

Note that this is also an argument for relying on built-in rules: you
can't screw up something you didn't write.

Philip Guenther

reply via email to

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