summaryrefslogtreecommitdiffstats
path: root/config/depend.in
diff options
context:
space:
mode:
Diffstat (limited to 'config/depend.in')
-rw-r--r--config/depend.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/config/depend.in b/config/depend.in
index 07d0245..dc72d74 100644
--- a/config/depend.in
+++ b/config/depend.in
@@ -25,7 +25,7 @@ dep depend: .distdep
.distdep: .depend
touch .distdep
- -perl -p $(ROOT)/bin/distdep .depend >.distdep
+ -srcdir=$(srcdir) perl -p $(top_srcdir)/bin/distdep .depend >.distdep
.depend: $(LIB_SRC) $(TEST_SRC) $(PROG_SRC)
@touch .depend
@@ -33,12 +33,12 @@ dep depend: .distdep
if [ $$dep != "dummy" ]; then \
echo Building dependencies for $$dep; \
obj=`echo $$dep | sed 's/\.c/\\\\.o/'`; \
- sed "/$$obj/,/[^\\]$$/d" <$@ >$@- && mv $@- $@; \
+ sed '\%$$obj%,\%[^\\]$$%d' <$@ >$@- && mv $@- $@; \
$(TRACE) $$dep; \
$(CC) -M -MG $(CPPFLAGS) $$dep >>$@; \
fi; \
done;
- -perl -p $(ROOT)/bin/distdep .depend >.distdep
+ -perl -p $(top_srcdir)/bin/distdep .depend >.distdep
-include .depend