summaryrefslogtreecommitdiff
path: root/Makerules
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1994-04-27 04:32:57 +0000
committerRoland McGrath <roland@gnu.org>1994-04-27 04:32:57 +0000
commit410c0ef5513a452318d14cf8cee0132efb6ba0a3 (patch)
tree1efe9443b82eabf1c8867d22e33035160a74f767 /Makerules
parentfac0d6ddcac2e43e20443fb8056c383439c079c3 (diff)
Formerly Makerules.~124~
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules17
1 files changed, 2 insertions, 15 deletions
diff --git a/Makerules b/Makerules
index 0f8d7cef9d..7242620659 100644
--- a/Makerules
+++ b/Makerules
@@ -253,23 +253,10 @@ override objects := $(addprefix $(objpfx),$(sources:.c=.o))
$(objpfx)depend-$(subdir): Makefile
ifdef +depfiles
-ifndef omit-deps
-# This used to simply use $(+depfiles) on the command line, but that tended
-# to overflow the arg limit on USG systems. Since `sources' is in the
-# environment anyway, we do some shell processing on it instead.
- for file in $(patsubst %,%.dep,$(others) $(tests)) \
- $(patsubst %.o,%.dep,$(filter %.o,$(extra-objs))) \
- `echo $${sources} | sed 's/\.c/.dep/g'`; do \
- echo "include \$$(objpfx)$$file"; \
- done > $@
-else
-# We still do the simple thing when omit-deps is defined; otherwise we
-# would have to do something horrid to omit them from the $sources value in
-# the shell.
for file in $(+depfiles:$(objpfx)%=%); do \
echo "include \$$(objpfx)$$file"; \
- done > $@
-endif
+ done > $@-tmp
+ mv -f $@-tmp $@
else
cp /dev/null $@
endif