summaryrefslogtreecommitdiff
path: root/Makerules
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2003-05-04 23:05:44 +0000
committerRoland McGrath <roland@gnu.org>2003-05-04 23:05:44 +0000
commitb710b53daf90b79b7f1a6caab5092043dff17604 (patch)
tree9c709c3775f780c1eadc90f570d6a7244fc1f1d7 /Makerules
parenta12ce44f6992d8249f779e95db730a9634571654 (diff)
2003-05-04 Roland McGrath <roland@redhat.com>
* Makerules (+make-deps): Fix target matching. Use $(sed-remove-dotdot).
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makerules b/Makerules
index b8e7a9ef7e..ef4658d5a6 100644
--- a/Makerules
+++ b/Makerules
@@ -379,9 +379,9 @@ S-CPPFLAGS = -DASSEMBLER $(asm-CPPFLAGS)
define +make-deps
$(make-target-directory)
$(+mkdep) $< $(if $(filter %.c,$<),$(CFLAGS)) \
- $(CPPFLAGS) $($(patsubst .%,%,$(suffix $(<F)))-CPPFLAGS) | sed \
--e 's,$(subst .,\.,$*)\.o,$(foreach o,$(all-object-suffixes),$(@:.d=$o)) $@,' \
-$(sed-remove-objpfx) > $(@:.d=.T)
+ $(CPPFLAGS) $($(patsubst .%,%,$(suffix $(<F)))-CPPFLAGS) | sed -e\
+'s,$(subst .,\.,$(@F:.d=.o)),$(foreach o,$(all-object-suffixes),$(@:.d=$o)) $@,' \
+$(sed-remove-objpfx) $(sed-remove-dotdot) > $(@:.d=.T)
mv -f $(@:.d=.T) $@ $(generate-md5)
endef