|
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 |
.SUFFIXES: .pdf .ps .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% in user.tex with current version string.
|
|
Packit Service |
c5cf8c |
user.tex: user.tex.vin
|
|
Packit Service |
c5cf8c |
sed -e "s/%MPICH_VERSION%/${MPICH_VERSION}/g" $? > $@
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
user.dvi: user.tex user.bib
|
|
Packit Service |
c5cf8c |
-$(LATEX) user.tex
|
|
Packit Service |
c5cf8c |
-$(BIBTEX) user
|
|
Packit Service |
c5cf8c |
-$(LATEX) user.tex
|
|
Packit Service |
c5cf8c |
$(LATEX) user.tex
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
user.pdf: user.dvi
|
|
Packit Service |
c5cf8c |
$(DVIPDFM) user.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 user.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 |
user.aux: user.tex
|
|
Packit Service |
c5cf8c |
$(LATEX) user.tex
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
user/user.html: user.aux user.tex user.bib
|
|
Packit Service |
c5cf8c |
$(LATEX2HTML) user.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)/user.tex
|
|
Packit Service |
c5cf8c |
# tohtml -default -dosnl -gaudy -basedef $(srcdir)/../mpiman.def \
|
|
Packit Service |
c5cf8c |
# $(srcdir)/user.tex
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
all-redirect: user.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 *.toc *.out *.dvi user.pdf *.aux *.blg *.bbl *.log
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
distclean: clean
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
install: user.pdf user/user.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 user.pdf $(WEBDIR)/user.pdf
|
|
Packit Service |
c5cf8c |
cp -rp user $(WEBDIR)/user-new
|
|
Packit Service |
c5cf8c |
rm -rf $(WEBDIR)/user
|
|
Packit Service |
c5cf8c |
mv -f $(WEBDIR)/user-new $(WEBDIR)/user
|
|
Packit Service |
c5cf8c |
cp user.pdf $(FTPDIR)/user.pdf
|
|
Packit Service |
c5cf8c |
cp -rp user $(FTPDIR)/user-new
|
|
Packit Service |
c5cf8c |
rm -rf $(WEBDIR)/user
|
|
Packit Service |
c5cf8c |
mv -f $(FTPDIR)/user-new $(FTPDIR)/user
|