Mon May 13 19:52:33 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
authorRoland McGrath <roland@gnu.org>
Tue, 14 May 1996 02:28:12 +0000 (02:28 +0000)
committerRoland McGrath <roland@gnu.org>
Tue, 14 May 1996 02:28:12 +0000 (02:28 +0000)
* Makerules (stub-$(subdir)): Put cmds including cd inside (...) with
output redirect outside it.

Makerules

index 048eff2..f235d17 100644 (file)
--- a/Makerules
+++ b/Makerules
@@ -754,12 +754,12 @@ stubs: $(common-objpfx)stub-$(subdir)
 s = $(sysdep_dir)/stub
 $(common-objpfx)stub-$(subdir): $(+depfiles)
 # Use /dev/null since `...` might expand to empty.
-       s=`cd $s; /bin/pwd`; \
-       $(patsubst %,cd %;,$(objdir)) \
-       sed -n 's/^stub_warning *(\([^)]*\).*$$/#define __stub_\1/p' \
-           `sed -n 's@^.*$s/\([a-z0-9_-]*\.c\).*$$@'"$$s"/'\1@p' \
-                $(patsubst $(objpfx)%,%,$^) /dev/null` \
-           /dev/null > $(@F)T
+       (s=`cd $s; /bin/pwd`; \
+        $(patsubst %,cd %;,$(objdir)) \
+        sed -n 's/^stub_warning *(\([^)]*\).*$$/#define __stub_\1/p' \
+            `sed -n 's@^.*$s/\([a-z0-9_-]*\.c\).*$$@'"$$s"/'\1@p' \
+                 $(patsubst $(objpfx)%,%,$^) /dev/null` \
+            /dev/null) > $@T
        mv -f $@T $@
 \f
 # Make the distribution tar file.