summaryrefslogtreecommitdiff
path: root/Makeconf
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-07-07 02:11:27 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-07-07 02:11:27 +0000
commit094c8b9af574d866289102ad42b52e92805bfd8c (patch)
tree85997267c3b26279c9cb53487a9d9f47b0b1e05e /Makeconf
parent2d638098c4caa975ba790de617a6789a7540963d (diff)
(%.d:%.c %.d:%.S): Repair sed line to include more context.
Diffstat (limited to 'Makeconf')
-rw-r--r--Makeconf4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makeconf b/Makeconf
index 60a93201..09874959 100644
--- a/Makeconf
+++ b/Makeconf
@@ -301,12 +301,12 @@ include $(subst .o,.d,$(OBJS)) /dev/null
# Here is how to make .d files from .c files
%.d: %.c
(set -e; $(CC) $(CFLAGS) $(CPPFLAGS) -M -MG $< | \
- sed -e 's/\.o/& $@/' > $@)
+ sed -e 's/$*\.o:/$*.o $@:/' > $@)
# Here is how to make .d files from .S files
%.d: %.S
(set -e; $(CC) $(CFLAGS) $(CPPFLAGS) -M -MG $< | \
- sed -e 's/\.o/& $@/' > $@)
+ sed -e 's/*\.o:/$*.o $@:/' > $@)
# .s files don't go through the preprocessor, so we do this
# This rule must come *after* the genuine ones above, so that