(tests): Depend on tests-static only if build-static == yes.
authordrepper <drepper>
Wed, 29 Jul 1998 14:50:42 +0000 (14:50 +0000)
committerdrepper <drepper>
Wed, 29 Jul 1998 14:50:42 +0000 (14:50 +0000)
Rules

diff --git a/Rules b/Rules
index 0f9116b..2353cc3 100644 (file)
--- a/Rules
+++ b/Rules
@@ -91,8 +91,12 @@ endif
 ifeq ($(cross-compiling),yes)
 tests: $(addprefix $(objpfx),$(tests) $(tests-static) $(test-srcs))
 else
+ifneq (($build-static),yes)
+tests: $(tests:%=$(objpfx)%.out)
+else
 tests: $(tests:%=$(objpfx)%.out) $(tests-static:%=$(objpfx)%.sout)
 endif
+endif
 
 ifeq ($(build-programs),yes)
 binaries-all = $(others) $(sysdep-others) $(tests) $(test-srcs)