1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00
wget/doc/Makefile.in

178 lines
4.7 KiB
Makefile
Raw Normal View History

1999-12-02 02:42:23 -05:00
# 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 3 of the License, or
1999-12-02 02:42:23 -05:00
# (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, see <http://www.gnu.org/licenses/>.
1999-12-02 02:42:23 -05:00
#
# 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_builddir = ..
1999-12-02 02:42:23 -05:00
top_srcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
prefix = @prefix@
infodir = @infodir@
mandir = @mandir@
manext = 1
sysconfdir = @sysconfdir@
DESTDIR =
1999-12-02 02:42:23 -05:00
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
RM = rm -f
TEXI2POD = $(srcdir)/texi2pod.pl
POD2MAN = @POD2MAN@
MAN = wget.$(manext)
WGETRC = $(sysconfdir)/wgetrc
SAMPLERCTEXI = sample.wgetrc.munged_for_texi_inclusion
1999-12-02 02:42:23 -05:00
#
# Dependencies for building
#
all: wget.info @COMMENT_IF_NO_POD2MAN@$(MAN)
1999-12-02 02:42:23 -05:00
everything: all wget_us.ps wget_a4.ps wget_toc.html
$(SAMPLERCTEXI): $(srcdir)/sample.wgetrc
sed s/@/@@/g $? > $@
wget.info: $(srcdir)/wget.texi $(SAMPLERCTEXI) $(srcdir)/version.texi
$(MAKEINFO) -I$(srcdir) $(srcdir)/wget.texi
1999-12-02 02:42:23 -05:00
wget.pod: $(srcdir)/wget.texi $(srcdir)/version.texi
$(TEXI2POD) $(srcdir)/wget.texi $@
$(MAN): wget.pod
$(POD2MAN) --center="GNU Wget" --release="GNU Wget @VERSION@" $? > $@
1999-12-02 02:42:23 -05:00
#wget.cat: $(MAN)
# nroff -man $? > $@
1999-12-02 02:42:23 -05:00
dvi: wget.dvi
wget.dvi: $(srcdir)/wget.texi
1999-12-02 02:42:23 -05:00
$(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: $(srcdir)/wget.texi
1999-12-02 02:42:23 -05:00
$(TEXI2HTML) $(srcdir)/wget.texi
#
# Dependencies for installing
#
# install all the documentation
install: install.info install.wgetrc @COMMENT_IF_NO_POD2MAN@install.man
1999-12-02 02:42:23 -05:00
# uninstall all the documentation
uninstall: uninstall.info @COMMENT_IF_NO_POD2MAN@uninstall.man
1999-12-02 02:42:23 -05:00
# 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.
1999-12-02 02:42:23 -05:00
install.info: wget.info
$(top_srcdir)/mkinstalldirs $(DESTDIR)$(infodir)
-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
1999-12-02 02:42:23 -05:00
# install man page, creating install directory if necessary
install.man: $(MAN)
$(top_srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/man$(manext)
2001-06-05 17:43:14 -04:00
$(INSTALL_DATA) $(MAN) $(DESTDIR)$(mandir)/man$(manext)/$(MAN)
1999-12-02 02:42:23 -05:00
# install sample.wgetrc
install.wgetrc: $(srcdir)/sample.wgetrc
$(top_srcdir)/mkinstalldirs $(DESTDIR)$(sysconfdir)
@if test -f $(DESTDIR)$(WGETRC); then \
if cmp -s $(srcdir)/sample.wgetrc $(DESTDIR)$(WGETRC); then echo ""; \
1999-12-02 02:42:23 -05:00
else \
echo ' $(INSTALL_DATA) $(srcdir)/sample.wgetrc $(DESTDIR)$(WGETRC).new'; \
$(INSTALL_DATA) $(srcdir)/sample.wgetrc $(DESTDIR)$(WGETRC).new; \
echo; \
echo "WARNING: Differing \`$(DESTDIR)$(WGETRC)'"; \
echo " exists and has been spared. You might want to"; \
echo " consider merging in the new lines from"; \
echo " \`$(DESTDIR)$(WGETRC).new'."; \
echo; \
1999-12-02 02:42:23 -05:00
fi; \
else \
$(INSTALL_DATA) $(srcdir)/sample.wgetrc $(DESTDIR)$(WGETRC); \
1999-12-02 02:42:23 -05:00
fi
# uninstall info pages
uninstall.info:
$(RM) $(DESTDIR)$(infodir)/wget.info*
1999-12-02 02:42:23 -05:00
# uninstall man page
uninstall.man:
$(RM) $(DESTDIR)$(mandir)/man$(manext)/$(MAN)
1999-12-02 02:42:23 -05:00
#
# Dependencies for cleanup
#
clean:
$(RM) *~ *.bak *.cat *.pod *.html
1999-12-02 02:42:23 -05:00
$(RM) *.dvi *.aux *.cp *.cps *.fn *.toc *.tp *.vr *.ps *.ky *.pg *.log
distclean: clean
$(RM) Makefile
$(RM) $(MAN)
1999-12-02 02:42:23 -05:00
realclean: distclean
$(RM) wget.info*
$(RM) $(SAMPLERCTEXI)
1999-12-02 02:42:23 -05:00
#
# Dependencies for maintenance
#
subdir = doc
Makefile: Makefile.in ../config.status
cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status