On 26 Oct 2001, at 19:19, Alexey Aphanasyev wrote:
> cd doc && make CC='gcc' CPPFLAGS='' DEFS='-DHAVE_CONFIG_H
> -DSYSTEM_WGETRC=\"~/etc/wgetrc\" -DLOCALEDIR=\"~/share/locale\"'
> CFLAGS='-g -O2' LDFLAGS='' LIBS='' prefix='~' exec_prefix='~'
> bindir='~/bin' infodir='~/info' mandir='~/man' manext='1'
> sed s/@/@@/g > sample.wgetrc.munged_for_texi_inclusion
>
> The full log file is attached bellow.
>
> I just wonder if someone could give me a clue what I was doing wrong.
You are doing nothing wrong, but you need to apply a patch as the
version of "make" on your system does not support a non-standard
feature that is being used in the doc/Makefile, i.e. the "$<"
macro, which is only meant to be valid in implicit rules, but in
some versions of make (including GNU make) also happens to be valid
in normal rules.
A patch was posted to the wget-patches list by Peter Farmer
recently, but I don't think that list gets archived anywhere, so I
have included it below:
-----------------------------[8<]--------------------------------
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
X-No-Archive: yes
Delivered-To: mailing list [EMAIL PROTECTED]
Sender: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
Date: Sat, 20 Oct 2001 13:51:07 +0800
From: Peter Farmer <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Organization: Zveno Pty Ltd
X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.16-3 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: [EMAIL PROTECTED]
Subject: patch for wget's doc/Makefile.in
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-PMFLAGS: 34078848 0 1 P4F380.CNM
Hi,
I find that the Makefile for the doc directory in wget 1.7 to be broken
in several ways. Below is the patch I made to make it work on HPUX 10.20
and RH Linux.
firstly you are using the $< macro as a target macro, when it is only
supposed to be available in suffix rules. I have replaced it with the
much more portable $?.
The target for wget.pod appears to have incorrect syntax if using $< /
$?.
I also made some changes to the rules using TEXI2POD to make it more
logical and consistent (IMHO). Obviously you can ignore those if you
dont like it 8-).
Regards,
Peter Farmer
--- doc/Makefile.in.orig Thu Apr 12 22:25:22 2001
+++ doc/Makefile.in Sat Oct 20 15:15:42 2001
@@ -48,7 +48,7 @@
INSTALL_DATA = @INSTALL_DATA@
RM = rm -f
-TEXI2POD = ./texi2pod.pl
+TEXI2POD = $(srcdir)/texi2pod.pl
POD2MAN = @POD2MAN@
MAN = wget.$(manext)
WGETRC = $(sysconfdir)/wgetrc
@@ -63,23 +63,23 @@
everything: all wget_us.ps wget_a4.ps wget_toc.html
$(SAMPLERCTEXI): $(srcdir)/sample.wgetrc
- sed s/@/@@/g $< > $@
+ sed s/@/@@/g $? > $@
wget.info: $(SAMPLERCTEXI) $(srcdir)/wget.texi
-$(MAKEINFO)
-$(TEXI2POD): $(srcdir)/$(TEXI2POD).in
- sed s,/usr/bin/perl,@PERL@, $< > $@
+$(TEXI2POD): $(TEXI2POD).in
+ sed s,/usr/bin/perl,@PERL@, $? > $@
chmod u+x $@
-wget.pod: $(srcdir)/wget.texi texi2pod.pl
- $(TEXI2POD) $< $@
+wget.pod: $(srcdir)/wget.texi $(TEXI2POD)
+ $(TEXI2POD) $(srcdir)/wget.texi $@
$(MAN): wget.pod
- $(POD2MAN) --center="GNU Wget" --release="GNU Wget @VERSION@" $< > $@
+ $(POD2MAN) --center="GNU Wget" --release="GNU Wget @VERSION@" $? > $@
#wget.cat: $(MAN)
-# nroff -man $< > $@
+# nroff -man $? > $@
dvi: wget.dvi
--
Peter Farmer | Custom XML software | Internet Engineering
Zveno Pty Ltd | Website XML Solutions | Training & Seminars
http://www.zveno.com/ | Open Source Tools | - XML XSL Tcl
[EMAIL PROTECTED] +------------------------+---------------------
Ph. +61 8 92036380 | Mobile +61 417 906 851 | Fax +61 8 92036380
-----------------------------[>8]--------------------------------