X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=doc%2FMakefile.in;h=57ff2f578a54df76da2c9a221b629af6c5a28853;hb=19f0a05e9135c570b871804b7b88724e9746c005;hp=b29b3351f437e3eb41ff354ac99a9d42ec6c347c;hpb=468778c89516c180d2cca095d6c7059bb4b16604;p=wget diff --git a/doc/Makefile.in b/doc/Makefile.in index b29b3351..57ff2f57 100644 --- a/doc/Makefile.in +++ b/doc/Makefile.in @@ -3,7 +3,7 @@ # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or +# the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # This program is distributed in the hope that it will be useful, @@ -12,8 +12,7 @@ # GNU General Public License for more details. # You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +# along with this program. If not, see . # # Version: @VERSION@ @@ -48,7 +47,7 @@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ RM = rm -f -TEXI2POD = ./texi2pod.pl +TEXI2POD = $(srcdir)/texi2pod.pl POD2MAN = @POD2MAN@ MAN = wget.$(manext) WGETRC = $(sysconfdir)/wgetrc @@ -63,23 +62,19 @@ all: wget.info @COMMENT_IF_NO_POD2MAN@$(MAN) 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) -I$(srcdir) +wget.info: $(srcdir)/wget.texi $(SAMPLERCTEXI) $(srcdir)/version.texi + $(MAKEINFO) -I$(srcdir) $(srcdir)/wget.texi -$(TEXI2POD): $(srcdir)/$(TEXI2POD).in - sed s,/usr/bin/perl,@PERL@, $< > $@ - chmod u+x $@ - -wget.pod: $(srcdir)/wget.texi texi2pod.pl - $(TEXI2POD) $< $@ +wget.pod: $(srcdir)/wget.texi $(srcdir)/version.texi + $(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 @@ -106,11 +101,23 @@ install: install.info install.wgetrc @COMMENT_IF_NO_POD2MAN@install.man uninstall: uninstall.info @COMMENT_IF_NO_POD2MAN@uninstall.man # install info pages, creating install directory if necessary +# if the info pages are built in the build directory, they are used. +# otherwise, the ones from the distribution are installed. 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 ; \ - done + -if test -f wget.info; then \ + for file in wget.info wget.info-*[0-9]; do \ + if test -f "$$file"; then \ + $(INSTALL_DATA) "$$file" "$(DESTDIR)$(infodir)/$$file" ; \ + fi; \ + done; \ + else \ + for file in $(srcdir)/wget.info $(srcdir)/wget.info-*[0-9]; do \ + if test -f "$$file"; then \ + $(INSTALL_DATA) "$$file" "$(DESTDIR)$(infodir)/`basename $$file`" ; \ + fi; \ + done; \ + fi # install man page, creating install directory if necessary install.man: $(MAN) @@ -154,7 +161,7 @@ clean: distclean: clean $(RM) Makefile - $(RM) $(MAN) $(TEXI2POD) + $(RM) $(MAN) realclean: distclean $(RM) wget.info*