1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00
wget/doc/Makefile.in
hniksic 18d476b8d0 [svn] Applied doc fixes from Jan's "realclean patch". The doc fixes
include the new texi2pod generator for creating the man page out
of Texinfo docs.
Published in <20010106184340.A14968@erwin.telekabel.at>.
2001-02-10 16:22:42 -08:00

168 lines
4.0 KiB
Makefile

# Makefile for `wget' utility
# Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
# 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
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# 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.
#
# Version: @VERSION@
#
SHELL = /bin/sh
# Program to format Texinfo source into Info files.
MAKEINFO = @MAKEINFO@
# Program to format Texinfo source into DVI files.
TEXI2DVI = texi2dvi
# Program to convert DVI files to PostScript
DVIPS = dvips -D 300
# Program to convert texinfo files to html
TEXI2HTML = texi2html -expandinfo -split_chapter
top_srcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
prefix = @prefix@
infodir = @infodir@
mandir = @mandir@
manext = 1
sysconfdir = @sysconfdir@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
RM = rm -f
TEXI2POD = ./texi2pod.pl
POD2MAN = pod2man
MAN = wget.$(manext)
WGETRC = $(sysconfdir)/wgetrc
SAMPLERCTEXI = sample.wgetrc.munged_for_texi_inclusion
#
# Dependencies for building
#
all: wget.info
everything: all wget_us.ps wget_a4.ps wget_toc.html
$(SAMPLERCTEXI): $(srcdir)/sample.wgetrc
sed s/@/@@/g $< > $@
wget.info: $(SAMPLERCTEXI) wget.texi
-$(MAKEINFO)
wget.pod: wget.texi
$(TEXI2POD) $< > $@
$(MAN): wget.pod
$(POD2MAN) --center="GNU Wget" --release="GNU Wget @VERSION@" $< > $@
man: $(MAN)
#wget.cat: $(MAN)
# nroff -man $< > $@
dvi: wget.dvi
wget.dvi: wget.texi
$(TEXI2DVI) $(srcdir)/wget.texi
wget_us.ps: wget.dvi
$(DVIPS) -t letter -o $@ wget.dvi
wget_a4.ps: wget.dvi
$(DVIPS) -t a4 -o $@ wget.dvi
wget_toc.html: wget.texi
$(TEXI2HTML) $(srcdir)/wget.texi
#
# Dependencies for installing
#
# install all the documentation
install: install.info install.wgetrc # install.man
# uninstall all the documentation
uninstall: uninstall.info # uninstall.man
# install info pages, creating install directory if necessary
install.info: wget.info
$(top_srcdir)/mkinstalldirs $(infodir)
-for file in wget.info wget.info-*[0-9]; do \
test -f $$file && $(INSTALL_DATA) $$file $(infodir)/$$file ; \
done
# install man page, creating install directory if necessary
install.man:
$(top_srcdir)/mkinstalldirs $(mandir)/man$(manext)
$(INSTALL_DATA) $(srcdir)/$(MAN) $(mandir)/man$(manext)/$(MAN)
# install sample.wgetrc
install.wgetrc:
$(top_srcdir)/mkinstalldirs $(sysconfdir)
@if test -f $(WGETRC); then \
if cmp -s $(srcdir)/sample.wgetrc $(WGETRC); then echo ""; \
else \
echo ' $(INSTALL_DATA) $(srcdir)/sample.wgetrc $(WGETRC).new'; \
$(INSTALL_DATA) $(srcdir)/sample.wgetrc $(WGETRC).new; \
echo; \
echo "WARNING: Differing \`$(WGETRC)'"; \
echo " exists and has been spared. You might want to"; \
echo " consider merging in the new lines from"; \
echo " \`$(WGETRC).new'."; \
echo; \
echo "<Hit RETURN to acknowledge>\c"; \
read user_input; \
echo; \
fi; \
else \
$(INSTALL_DATA) $(srcdir)/sample.wgetrc $(WGETRC); \
fi
# uninstall info pages
uninstall.info:
$(RM) $(infodir)/wget.info*
# uninstall man page
uninstall.man:
$(RM) $(mandir)/man$(manext)/$(MAN)
#
# Dependencies for cleanup
#
clean:
$(RM) *~ *.bak *.cat *.pod *.html
$(RM) *.dvi *.aux *.cp *.cps *.fn *.toc *.tp *.vr *.ps *.ky *.pg *.log
distclean: clean
$(RM) Makefile
$(RM) $(MAN)
realclean: distclean
$(RM) wget.info*
$(RM) $(SAMPLERCTEXI)
#
# Dependencies for maintenance
#
subdir = doc
Makefile: Makefile.in ../config.status
cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status