Summary:
If wget-1.7 is built in a directory other than its source directory,
then "make install" in the doc subdirectory fails.

To reproduce:
tar xzvf wget-1.7.tar.gz
cd wget-1.7
mkdir build
cd build
../configure # Desired configure options here
make
make install

Result:
"make install" fails in the doc directory, here's the tail of
the make messages:

cd doc && make CC='gcc' CPPFLAGS='' DEFS='-DHAVE_CONFIG_H 
-DSYSTEM_WGETRC=\"/tmp/wget-1.7/etc/wgetrc\" 
-DLOCALEDIR=\"/tmp/wget-1.7/share/locale\"' CFLAGS='-g -O2' LDFLAGS='' LIBS='' 
prefix='/tmp/wget-1.7' exec_prefix='/tmp/wget-1.7' bindir='/tmp/wget-1.7/bin' 
infodir='/tmp/wget-1.7/info' mandir='/tmp/wget-1.7/man' manext='1' install.man
make[1]: Entering directory `/uns/awong/admin/src/wget-1.7/build/doc'
../../mkinstalldirs /tmp/wget-1.7/man/man1
mkdir /tmp/wget-1.7/man
mkdir /tmp/wget-1.7/man/man1
/usr/bin/install -c -m 644 ../../doc/wget.1 /tmp/wget-1.7/man/man1/wget.1
/usr/bin/install: ../../doc/wget.1: No such file or directory
make[1]: *** [install.man] Error 1
make[1]: Leaving directory `/uns/awong/admin/src/wget-1.7/build/doc'
make: *** [install.man] Error 2

Proposed Fix:
May I suggest this patch to doc/Makefile.in:

--- doc/Makefile.in.orig        Thu Apr 12 05:25:22 2001
+++ doc/Makefile.in     Wed Jun 20 21:21:03 2001
@@ -108,14 +108,14 @@
 # install info pages, creating install directory if necessary
 install.info: wget.info
        $(top_srcdir)/mkinstalldirs $(DESTDIR)$(infodir)
-       -for file in wget.info wget.info-*[0-9]; do \
-          test -f $$file && $(INSTALL_DATA) $$file $(DESTDIR)$(infodir)/$$file ; \
+       -for file in $(srcdir)/wget.info $(srcdir)/wget.info-*[0-9]; do \
+          test -f $$file && $(INSTALL_DATA) $$file $(DESTDIR)$(infodir)/`basename 
+$$file` ; \
        done
 
 # install man page, creating install directory if necessary
 install.man: $(MAN)
        $(top_srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/man$(manext)
-       $(INSTALL_DATA) $(srcdir)/$(MAN) $(DESTDIR)$(mandir)/man$(manext)/$(MAN)
+       $(INSTALL_DATA) $(MAN) $(DESTDIR)$(mandir)/man$(manext)/$(MAN)
 
 # install sample.wgetrc
 install.wgetrc: $(srcdir)/sample.wgetrc

I am not very familiar with autoconf tools, so I it's quite possible
that my "fix" introduces a problem I hadn't thought of.

Thank you for your time.

Reply via email to