From 99e973a956a6d682f3014d1b35a8ff4cb557bd0e Mon Sep 17 00:00:00 2001
From: Mike Frysinger <vapier@gentoo.org>
Date: Tue, 18 Jan 2005 23:30:31 +0000
Subject: rework dependencies so the archive is re-created only when the object
 files have been updated

---
 libresolv/Makefile | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

(limited to 'libresolv/Makefile')

diff --git a/libresolv/Makefile b/libresolv/Makefile
index 510457b87..32ca32d71 100644
--- a/libresolv/Makefile
+++ b/libresolv/Makefile
@@ -34,11 +34,9 @@ LIBRESOLV_SHARED_FULLNAME=libresolv-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL
 CSRC = resolv.c
 OBJS=$(patsubst %.c,%.o, $(CSRC))
 
-all: $(OBJS) $(LIBRESOLV)
+all: $(LIBRESOLV)
 
-$(LIBRESOLV): ar-target
-
-ar-target: $(OBJS)
+$(LIBRESOLV) ar-target: $(OBJS)
 	$(AR) $(ARFLAGS) $(LIBRESOLV) $(OBJS)
 	$(INSTALL) -d $(TOPDIR)lib
 	$(RM) $(TOPDIR)lib/$(LIBRESOLV)
-- 
cgit v1.2.3