#Makefile fuer das Erstellen des Papers.

.SUFFIXES: .ps .dvi .tex
.SILENT:

TEX=latex
TEX_FLAGS=
DVIPS=dvips
DVIPS_FLAGS=-q

TEXNAME=anngo
MAINTEXFILE=anngo.tex
TEXFILES=basement.tex  intro.tex  protocol.tex

all: anngo

anngo: $(TEXFILES) output

output: anngo.dvi anngo.ps

.dvi.ps:
	echo "Creating $@ from $< ..."
	$(DVIPS) $(DVIPS_FLAGS) $< -o $@ > /dev/null

.tex.dvi:
	echo "Creating $@ from $< ..."
	$(TEX) $(TEX_FLAGS) $<   > /dev/null	
	$(TEX) $(TEX_FLAGS) $<   > /dev/null

clean:
	echo "Cleaning up directory ..."
	- rm *.aux *.bbl *.blg *.lof *.log *.toc 2> /dev/null

dist: clean
	echo "Building package ..."
	mkdir BioInfPaper
	cp -f *.tex *.eps *.bib *.glo Makefile BioInfPaper
	tar czf BioInfPaper.tar.gz BioInfPaper
	rm -rf BioInfPaper
