# Makefile for LaTeX document compilation. # -RPM 00.07.21 DOCNAME=PhDThesis PSNAME =$(DOCNAME).ps PDFNAME=$(DOCNAME).pdf DVINAME=$(DOCNAME).dvi IDXNAME=$(DOCNAME).idx TEXNAME=$(DOCNAME).tex # Note: if you don't cite any bibliography stuff, you should # probably remove the call to bibtex, or it'll kill the build... # These are files that get included in the main LaTeX document. # Anything you put here will be checked for changes; if they've # changed, the DVI file gets regenerated. INCLUDEFILES = \ layout.tex \ abstract.tex \ acknowledgements.tex \ listofsymbols.tex \ macros.tex \ PhDThesis-introduction.tex \ PhDThesis-mudecaytheory.tex \ PhDThesis-statusreview.tex \ PhDThesis-hardware.tex \ PhDThesis-analysis.tex \ PhDThesis-geant.tex \ PhDThesis-data.tex \ PhDThesis-systematics.tex \ PhDThesis-results.tex \ PhDThesis-eventtypes.tex \ PhDThesis-windowtypes.tex \ Bibliography.bib # Default target goes here... all: $(PDFNAME) # Quick targets for building PS or PDF versions. ps: $(PSNAME) pdf: $(PDFNAME) # Create the PostScript file. $(PSNAME): $(DVINAME) dvips -t letter -o $(PSNAME) $(DVINAME) # Create the PDF file out of the PS file. #$(PDFNAME): $(PSNAME) # ps2pdf $(PSNAME) # Create the PDF file with pdflatex: (requires figures in PDF) $(PDFNAME): $(TEXNAME) $(INCLUDEFILES) pdflatex $(TEXNAME) # Generate auxilliary files. bibtex $(DOCNAME) # Process the bibliography. makeindex $(IDXNAME) # Create the index file. pdflatex $(TEXNAME) # Reprocess. makeindex $(IDXNAME) # Update the index file, # in case page numbers changed. pdflatex $(TEXNAME) # Reprocess. # Without biblography: #$(PDFNAME): $(TEXNAME) $(INCLUDEFILES) # latex $(TEXNAME) # Generate auxilliary files. # makeindex $(IDXNAME) # Create the index file. # latex $(TEXNAME) # Reprocess. # makeindex $(IDXNAME) # Update the index file, # # in case page numbers changed. # latex $(TEXNAME) # Reprocess. # Create the DVI file from the LaTeX source. $(DVINAME): $(TEXNAME) $(INCLUDEFILES) latex $(TEXNAME) # Generate auxilliary files. bibtex $(DOCNAME) # Process the bibliography. makeindex $(IDXNAME) # Create the index file. latex $(TEXNAME) # Reprocess. makeindex $(IDXNAME) # Update the index file, # in case page numbers changed. latex $(TEXNAME) # Reprocess. # Without biblography: #$(DVINAME): $(TEXNAME) $(INCLUDEFILES) # latex $(TEXNAME) # Generate auxilliary files. # makeindex $(IDXNAME) # Create the index file. # latex $(TEXNAME) # Reprocess. # makeindex $(IDXNAME) # Update the index file, # # in case page numbers changed. # latex $(TEXNAME) # Reprocess. # Default "quick" build: quick: quickpdf # Build a .ps file quickly -- lots of references will probably be wrong. quickps: latex $(TEXNAME) dvips -t letter -o $(PSNAME) $(DVINAME) # Build a .pdf file quickly -- lots of references will probably be wrong. quickpdf: pdflatex $(TEXNAME) # Clean up after yourself. (Removes ALL .aux files!) clean: rm -ivf $(DOCNAME).dvi $(DOCNAME).log $(DOCNAME).aux \ $(DOCNAME).toc $(DOCNAME).lof $(DOCNAME).lot \ $(DOCNAME).idx $(DOCNAME).ind $(DOCNAME).ilg \ $(DOCNAME).bbl $(DOCNAME).blg \ *.aux