#
# Generic Makefile for a multi-part TeX document.
#
# The main file is assumed to be called main.tex.
#
# List names of component files in the TEXFILES variable.  List other 
# dependencies in the OTHERDEPS variable.
#

TEXFILES = \
OTHERDEPS = \

export TEXINPUTS := ${TEXINPUTS}:../inputs

%.PS: %.dvi
	dvips -o $@ $<

%.dvi: %.tex
	tex $<

all: main.dvi
main.PS: main.dvi
main.dvi: $(TEXFILES) $(OTHERDEPS)

clean:
	-rm -f *.dvi *.log
	-rm -f *~ *.bak
	-rm -f *.PS TAGS
