Blame doc/installguide/Makefile.in

Packit Service c5cf8c
ALL: all-redirect
Packit Service c5cf8c
SHELL = @SHELL@
Packit Service c5cf8c
srcdir = @srcdir@
Packit Service c5cf8c
MPICH_VERSION = @MPICH_VERSION@
Packit Service c5cf8c
Packit Service c5cf8c
.SUFFIXES: .pdf .dvi .tex
Packit Service c5cf8c
Packit Service c5cf8c
# Set these to the location of the web and ftp locations for the documents
Packit Service c5cf8c
WEBDIR = /mcs/www/mpi/mpich/docs
Packit Service c5cf8c
FTPDIR = /home/ftp/pub/mpi/mpich
Packit Service c5cf8c
Packit Service c5cf8c
@VPATH@
Packit Service c5cf8c
Packit Service c5cf8c
LATEX      = TEXINPUTS=".:$(srcdir):" ; export TEXINPUTS ; latex
Packit Service c5cf8c
BIBTEX     = BIBINPUTS=".:$(srcdir):" ; export BIBINPUTS ; bibtex
Packit Service c5cf8c
DVIPDFM    = TEXINPUTS=".:$(srcdir):" ; export TEXINPUTS ; dvipdfm
Packit Service c5cf8c
LATEX2HTML = latex2html
Packit Service c5cf8c
Packit Service c5cf8c
# Update the %MPICH_VERSION% with current version string.
Packit Service c5cf8c
install.tex: install.tex.vin
Packit Service c5cf8c
	sed -e "s/%MPICH_VERSION%/${MPICH_VERSION}/g" $? > $@
Packit Service c5cf8c
Packit Service c5cf8c
install.dvi: install.tex
Packit Service c5cf8c
	-$(LATEX) install.tex
Packit Service c5cf8c
	-$(LATEX) install.tex
Packit Service c5cf8c
	$(LATEX)  install.tex
Packit Service c5cf8c
Packit Service c5cf8c
install.pdf: install.dvi
Packit Service c5cf8c
	$(DVIPDFM) install.dvi
Packit Service c5cf8c
Packit Service c5cf8c
# Use latex2html to create the HTML version.  There are several 
Packit Service c5cf8c
# steps needed to workaround features of latex2html
Packit Service c5cf8c
# 1. latex2html needs the install.aux file, so we run a latex step if
Packit Service c5cf8c
#    necessary
Packit Service c5cf8c
# 2. latex2html is not compatible with VPATH builds (it runs in the
Packit Service c5cf8c
#    directory that contains the source file), so we copy the source
Packit Service c5cf8c
#    file.  If more source files are added, this step will need to 
Packit Service c5cf8c
#    be changed
Packit Service c5cf8c
install.aux: install.tex
Packit Service c5cf8c
	$(LATEX) install.tex
Packit Service c5cf8c
Packit Service c5cf8c
install/install.html: install.aux install.tex
Packit Service c5cf8c
	$(LATEX2HTML) install.tex
Packit Service c5cf8c
Packit Service c5cf8c
# Here are some thoughts on using tohtml
Packit Service c5cf8c
#	tohtml -debugfile -default -dosnl -gaudy \
Packit Service c5cf8c
#              -basedef $(srcdir)/../mpiman.def $(srcdir)/install.tex
Packit Service c5cf8c
#	tohtml -default -dosnl -gaudy -basedef $(srcdir)/../mpiman.def \
Packit Service c5cf8c
#	$(srcdir)/install.tex
Packit Service c5cf8c
Packit Service c5cf8c
all-redirect: install.pdf
Packit Service c5cf8c
Packit Service c5cf8c
mandoc:
Packit Service c5cf8c
Packit Service c5cf8c
htmldoc:
Packit Service c5cf8c
Packit Service c5cf8c
latexdoc: ALL
Packit Service c5cf8c
Packit Service c5cf8c
clean:
Packit Service c5cf8c
	-rm -f *.dvi *.log *.out *.aux *.toc *.bbl *.blg *.pdf *.ps
Packit Service c5cf8c
Packit Service c5cf8c
distclean: clean
Packit Service c5cf8c
Packit Service c5cf8c
install: install.pdf install/install.html
Packit Service c5cf8c
	@if [ -z "$(WEBDIR)" ] ; then echo "No WEBDIR set" ; exit 1 ; fi
Packit Service c5cf8c
	@if [ ! -d $(WEBDIR) ] ; then echo "Create $(WEBDIR) first" ; exit 1 ;fi
Packit Service c5cf8c
	@if [ -z "$(FTPDIR)" ] ; then echo "No FTPDIR set" ; exit 1 ; fi
Packit Service c5cf8c
	@if [ ! -d $(FTPDIR) ] ; then echo "Create $(FTPDIR) first" ; exit 1 ;fi
Packit Service c5cf8c
	cp install.pdf $(WEBDIR)/install.pdf
Packit Service c5cf8c
	cp -rp install $(WEBDIR)/install-new
Packit Service c5cf8c
	rm -rf $(WEBDIR)/install
Packit Service c5cf8c
	mv -f $(WEBDIR)/install-new $(WEBDIR)/install
Packit Service c5cf8c
	cp install.pdf $(FTPDIR)/install.pdf
Packit Service c5cf8c
	cp -rp install $(FTPDIR)/install-new
Packit Service c5cf8c
	rm -rf $(WEBDIR)/install
Packit Service c5cf8c
	mv -f $(FTPDIR)/install-new $(FTPDIR)/install