[gnu.utils.bug] disagreement of sun make and gnumake 3.38

gerry@TOADWAR.UCAR.EDU (gerry wiener) (03/22/89)

When using the following makefile on a sun4-os4, sun make and gnumake
differ dramatically.  There probably is another way of archiving
libraries in gnumake (without the unnecessary compilation), but what's
going wrong here?

-------------------------------------------------------------------------------
#makefile
CC = cc

OBJS = foo.o foo1.o


LIB_OBJS = lib.a(foo.o) \
	lib.a(foo1.o) 

lib.a: $(LIB_OBJS)
	ranlib lib.a 
-------------------------------------------------------------------------------
/* foo.c */
foo()
{
}
-------------------------------------------------------------------------------
/* foo1.c */
foo1()
{
}
-------------------------------------------------------------------------------

hail:gerry:1>make
`lib.a' is up to date.
hail:gerry:2>gnumake
cc    -c foo.c -o foo.o
ar rv lib.a foo.o
r - foo.o
cc    -c foo1.c -o foo1.o
ar rv lib.a foo1.o
r - foo1.o
ranlib lib.a 
rm -f foo.o
rm -f foo1.o
hail:gerry:3>gnumake
cc    -c foo.c -o foo.o
ar rv lib.a foo.o
r - foo.o
cc    -c foo1.c -o foo1.o
ar rv lib.a foo1.o
r - foo1.o
ranlib lib.a 
rm -f foo.o
rm -f foo1.o
hail:gerry:4>make
`lib.a' is up to date.
hail:gerry:5>

	Gerry Wiener	(303)497-8790  Email:gerry@toadwar.ucar.edu
	NCAR
	P.O. Box 3000
	Boulder, Co
	80307-3000