On Sat, May 8, 2010 at 4:25 AM, Payal <[email protected]> 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..."

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


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to