Wed May 22 21:21:15 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
authorroland <roland>
Thu, 23 May 1996 01:34:27 +0000 (01:34 +0000)
committerroland <roland>
Thu, 23 May 1996 01:34:27 +0000 (01:34 +0000)
* Rules (%.out rules): Prepend $($*-ENV) to the command.

Rules

diff --git a/Rules b/Rules
index 517c3a6..2eddd6e 100644 (file)
--- a/Rules
+++ b/Rules
@@ -96,13 +96,13 @@ ifneq "$(strip $(tests))" ""
 # These are the implicit rules for making test outputs
 # from the test programs and whatever input files are present.
 $(objpfx)%.out: %.args $(objpfx)% %.input
-       $(built-program-cmd) `cat $(word 1,$^)` < $(word 3,$^) > $@
+       $($*-ENV) $(built-program-cmd) `cat $(word 1,$^)` < $(word 3,$^) > $@
 $(objpfx)%.out: %.args $(objpfx)%
-       $(built-program-cmd) `cat $(word 1,$^)` > $@
+       $($*-ENV) $(built-program-cmd) `cat $(word 1,$^)` > $@
 $(objpfx)%.out: %.input $(objpfx)%
-       $(built-program-cmd) < $(word 1,$^) > $@
+       $($*-ENV) $(built-program-cmd) < $(word 1,$^) > $@
 $(objpfx)%.out: /dev/null $(objpfx)%   # Make it 2nd arg for canned sequence.
-       $(built-program-cmd) > $@
+       $($*-ENV) $(built-program-cmd) > $@
 endif  # tests
 \f
 .PHONY: distclean realclean subdir_distclean subdir_realclean \