summaryrefslogtreecommitdiff
path: root/Rules
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1994-08-16 00:59:17 +0000
committerRoland McGrath <roland@gnu.org>1994-08-16 00:59:17 +0000
commit2890e41c0776a9d4ba93e760afa0088bd86ba830 (patch)
tree693a57cfde813b3f7782c0f8737f5318253fa38f /Rules
parent8609048eed505439b8c095b6caaec2f664dea462 (diff)
[cross-compiling=yes] (tests): Depend on the binaries, not the output
files.
Diffstat (limited to 'Rules')
-rw-r--r--Rules4
1 files changed, 4 insertions, 0 deletions
diff --git a/Rules b/Rules
index 578b54bf90..808595cb60 100644
--- a/Rules
+++ b/Rules
@@ -72,7 +72,11 @@ $(objpfx)dummy.o:
.PHONY: others tests
others: $(addprefix $(objpfx),$(others))
+ifeq ($(cross-compiling),yes)
+tests: $(addprefix $(objpfx),$(tests))
+else
tests: $(tests:%=$(objpfx)%.out)
+endif
ifneq "$(strip $(others) $(tests))" ""
$(addprefix $(objpfx),$(others) $(tests)): %: %.o $(libc.a)