(+depfiles): Don't add $(others) if not build-programs.
authordrepper <drepper>
Sun, 10 Aug 1997 16:51:48 +0000 (16:51 +0000)
committerdrepper <drepper>
Sun, 10 Aug 1997 16:51:48 +0000 (16:51 +0000)
Makerules

index ba0116b..b9cdc5e 100644 (file)
--- a/Makerules
+++ b/Makerules
@@ -426,9 +426,15 @@ extra-libs-left := $(extra-libs)
 include $(patsubst %,$(..)extra-lib.mk,$(extra-libs))
 endif
 \f
+ifeq ($(build-programs),yes)
 +depfiles := $(strip $(sources:.c=.d) \
                     $(patsubst %.o,%.d,$(filter %.o,$(extra-objs:.so=.o))) \
                     $(addsuffix .d,$(others) $(tests) $(test-srcs)))
+else
++depfiles := $(strip $(sources:.c=.d) \
+                    $(patsubst %.o,%.d,$(filter %.o,$(extra-objs:.so=.o))) \
+                    $(addsuffix .d,$(tests) $(test-srcs)))
+endif
 +depfiles := $(addprefix $(objpfx),\
                         $(filter-out $(addsuffix .d,$(omit-deps)),\
                                      $(+depfiles)))