Re: build outside of source dir breaks installation of wget.1

2001-06-14 Thread Jan Prikryl

Mike Castle wrote:

 I try to build all autoconfed packages outside of the source directory.
 (It is suggested that they allow this type of build in the GNU Coding
 Standards.)
 
 The generated man page, wget.1, ends up in the build directory, but install
 looks for it in srcdir:

Yes, this is a bug in Makefile system of wget 1.7 . The current CVS
version of wget (see http://sunsite.dk/wget/) shall work properly, so
you may expect that wget 1.7.1 will be OK.

Thanks for the patch anyway.

-- jan



build outside of source dir breaks installation of wget.1

2001-06-13 Thread Mike Castle


I try to build all autoconfed packages outside of the source directory.
(It is suggested that they allow this type of build in the GNU Coding
Standards.)

The generated man page, wget.1, ends up in the build directory, but install
looks for it in srcdir:

/usr/bin/install -c -m 644 ../../wget-1.7/doc/wget.1 /usr/man/man1/wget.1
/usr/bin/install: cannot stat `../../wget-1.7/doc/wget.1': No such file or
directory

nexus@thune[10:50pm]/usr/src/wget(720) find . -name wget.1
./wget-1.7-build/doc/wget.1

The following patch seems to work.

diff -ru wget-1.7.orig/doc/Makefile.in wget-1.7/doc/Makefile.in
--- wget-1.7.orig/doc/Makefile.in   Thu Apr 12 05:25:22 2001
+++ wget-1.7/doc/Makefile.inWed Jun 13 23:04:45 2001
@@ -115,7 +115,7 @@
 # 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

mrc
-- 
 Mike Castle  [EMAIL PROTECTED]  www.netcom.com/~dalgoda/
We are all of us living in the shadow of Manhattan.  -- Watchmen
fatal (You are in a maze of twisty compiler features, all different); -- gcc