# Generated automatically from Makefile.in by configure.
# -*- makefile -*-
#
# Copyright (C) 1996-2000
# 
# Object Oriented MPI (OOMPI): A C++ class library for MPI
# Authors: Jeffrey M. Squyres, Jeremiah J. Willcock, Brian C. McCandless, 
# 	 Peter W. Rijks, Andrew Lumsdaine
# 
# This file is part of the Notre Dame Object Oriented MPI (OOMPI)
# 
# You should have received a copy of the License Agreement for the Notre
# Dame Object Oriented MPI along with the software; see the file LICENSE.
# If not, contact Office of Research, University of Notre Dame, Notre
# Dame, IN 46556.
# 
# Permission to modify the code and to distribute modified code is
# granted, provided the text of this NOTICE is retained, a notice that
# the code was modified is included with the above COPYRIGHT NOTICE and
# with the COPYRIGHT NOTICE in the LICENSE file, and that the LICENSE
# file is distributed with the modified code.
# 
# LICENSOR MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED.
# By way of example, but not limitation, Licensor MAKES NO
# REPRESENTATIONS OR WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY
# PARTICULAR PURPOSE OR THAT THE USE OF THE LICENSED SOFTWARE COMPONENTS
# OR DOCUMENTATION WILL NOT INFRINGE ANY PATENTS, COPYRIGHTS, TRADEMARKS
# OR OTHER RIGHTS.
# 
# --------------------------------------------------------------------
# 
# Developed and implemented by:
#   Jeffrey M. Squyres
#   Jeremiah J. Willcock
#   Brian C. McCandless
#   Peter W. Rijks
#   Andrew Lumsdaine
# 
#   Laboratory for Scientific Computing
#   Department of Computer Science and Engineering
#   University of Notre Dame
#   http://www.lsc.nd.edu/
# 
# --------------------------------------------------------------------
#

###########################################################################

SHELL		= /bin/sh
LATEX		= /usr/local/src/tex/bin/latex
BIBTEX		= bibtex
DVIPS		= /usr/local/src/tex/bin/dvips

OOMPI_SRC	= \
	version.tex \
	oompi.tex \
	titlepage.tex \
	requirements.tex \
	analysis.tex \
	design.tex \
	examples.tex \
	array_message_analysis.tex \
	cart_comm_analysis.tex \
	comm_analysis.tex \
	comm_world_analysis.tex \
	datatype_analysis.tex \
	environment_analysis.tex \
	error_analysis.tex \
	graph_comm_analysis.tex \
	group_analysis.tex \
	inter_comm_analysis.tex \
	intra_comm_analysis.tex \
	message_analysis.tex \
	op_analysis.tex \
	packed_analysis.tex \
	port_analysis.tex \
	request_analysis.tex \
	request_array_analysis.tex \
	status_analysis.tex \
	status_array_analysis.tex \
	tag_analysis.tex \
	user_type_analysis.tex \
	constants.tex \
	availability.tex \
	refs.bib

###########################################################################

.SUFFIXES: .tex .dvi .ps .pdf

.tex.dvi:
	@ if test ! -f $*.ind; then echo "" > $*.ind; fi
	@$(LATEX) $*
	@if ( grep 'LaTeX Warning: Label(s) may' $*.log > /dev/null ); \
	then $(LATEX) $* ; else :; fi
	@ if ( grep 'Writing index file' $*.log > /dev/null ); \
	then makeindex $* ; $(LATEX) $* ; fi
	@-if ( grep 'LaTeX Warning: Citation' $*.log > /dev/null ); then \
	  $(BIBTEX) $* ; \
	  $(LATEX) $* ; \
	fi
	@if ( grep 'LaTeX Warning: Label(s) may' $*.log > /dev/null || \
	      grep 'LaTeX Warning: Citation' $*.log > /dev/null); \
	then $(LATEX) $* ; else :; fi
	@if ( grep 'LaTeX Warning: Label(s) may' $*.log > /dev/null || \
	      grep 'LaTeX Warning: Citation' $*.log > /dev/null); \
	then $(LATEX) $* ; else :; fi
	@if ( grep 'LaTeX Warning: Label(s) may' $*.log > /dev/null || \
	      grep 'LaTeX Warning: Citation' $*.log > /dev/null); \
	then $(LATEX) $* ; else :; fi

.dvi.ps:
	$(DVIPS) -Pps-type1 -o $*.ps $*

.ps.pdf:
	distill -maxsubsetpct 99 -subsetfonts on -pairs $*.ps $*.pdf

###########################################################################

#
# Rules
#

all: ps

docs: pdf

version.tex: ../VERSION
	rm -f version.tex
	cat ../VERSION | awk '{ print $$3 }' > version.tex

oompi.dvi: $(OOMPI_SRC) 
oompi.ps: oompi.dvi
oompi.pdf: oompi.ps

ps: oompi.ps
pdf: oompi.pdf

#
# The usuals
#

clean:
	rm -rf core *~ .[a-zA-Z0-9]*~ \#* *.dvi

squeaky: clean
	rm -rf *.aux *.dvi *.log *.blg *.bbl *.blg *.idx *.ilg *.ind *.toc

distclean: squeaky

