#
# If you're on a Alpha (Digital Unix) machine, please make sure that
# the directory
#	/usr/local/TeX/bin/alphaev5-osf4.0d
# is somewhere in your path, BEFORE /usr/bin and /usr/local/bin. This
# will use a newer and better TeX and Friends distribution (TeXLive).
# On Linux it doesn't matter!
#
LATEX		= latex 
DVIPS		= dvips
BIBTEX		= bibtex
TARGET		= brahms.ps 
DIRS		= appen dispo event exper img intro \
			kinet konkl simul synop teori 
FILES		= Makefile brahms.tex cholm.sty brahms.bib 
TARBALL		= brahms.tar

%.dvi:%.tex
	$(LATEX)  $* 
	$(LATEX)  $* 
	-$(BIBTEX) $* 
	$(LATEX)  $* 

%.ps:%.dvi
	$(DVIPS) $< -o $@ 

all:	$(TARGET)

dist: 	distclean 
	tar -cvf $(TARBALL) $(DIRS) $(FILES) 
	gzip -f $(TARBALL) 

clean:
	rm -f *.log *.blg *.ilg *~ \#*\#

realclean: clean
	rm -f *.dvi *.aux *.toc *.lot *.lof 

distclean: realclean
	rm -f *.ps $(TARBALL).gz  
