summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/depend1.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/depend1.in b/config/depend1.in
index 2988249..62129b4 100644
--- a/config/depend1.in
+++ b/config/depend1.in
@@ -37,8 +37,8 @@ $(srcdir)/Dependencies: .depend
@for dep in $? dummy; do \
if [ $$dep != "dummy" ]; then \
echo Building dependencies for $$dep; \
- obj=`echo $$dep | sed 's/\.c/\\\\.lo/'`; \
- sed '\%$$obj%,\%[^\\]$$%d' <$@ >$@- && mv $@- $@; \
+ obj=`basename $$dep .c`.lo; \
+ sed '\%^'"$$obj"':%,\%[^\\]$$%d' <$@ >$@- && mv $@- $@; \
$(TRACE) $$dep; \
$(CC) -M -MG $(CPPFLAGS) $$dep 2>/dev/null | \
sed 's% $(srcdir)/% $$(srcdir)/%g' | \