diff --git a/doc/ChangeLog b/doc/ChangeLog
index d7cb1bed..107052a1 100644
--- a/doc/ChangeLog
+++ b/doc/ChangeLog
@@ -1,3 +1,7 @@
+2000-11-05  Hrvoje Niksic  <hniksic@arsdigita.com>
+
+	* Makefile.in (sample.wgetrc.munged_for_texi_inclusion): Use $(srcdir).
+
 2000-11-05  Hrvoje Niksic  <hniksic@arsdigita.com>
 
 	* wget.texi: Updated names of contributors.
diff --git a/doc/Makefile.in b/doc/Makefile.in
index 51469fd6..9c61afd1 100644
--- a/doc/Makefile.in
+++ b/doc/Makefile.in
@@ -56,7 +56,7 @@ all: wget.info # wget.cat
 everything: all wget_us.ps wget_a4.ps wget_toc.html
 
 sample.wgetrc.munged_for_texi_inclusion: sample.wgetrc
-	sed s/@/@@/g sample.wgetrc > sample.wgetrc.munged_for_texi_inclusion
+	sed s/@/@@/g $(srcdir)/sample.wgetrc > sample.wgetrc.munged_for_texi_inclusion
 
 wget.info: sample.wgetrc.munged_for_texi_inclusion wget.texi
 	-$(MAKEINFO)