## ## File : Makefile.am ## Author : Robert Chalmers ## ## Original : October 13, 1999 ## Revised : February 26, 2000 ## ## Content : Project Makefile template used my automake. ## This provides targets to build the project ## latex documentation. ## ## Building the latex document should only be done ## during development. The generated postscript ## file should then be distributed. ## if P_LATEX_COND # build the postscript files using latex intro_files := intro.tex approach.tex cache_files := caches.tex cacheSize.tex cacheShare.tex cacheLine.tex cacheAssoc.tex cacheReplace.tex cacheWrite.tex cacheAddress.tex tlb_files := tlbs.tex tlbPage.tex tlbEntries.tex tlbAssoc.tex tlbShare.tex tail_files := conclusions.tex inc_files := $(addprefix report/, $(intro_files) $(cache_files) $(tlb_files) $(tail_files)) .PHONY: latex ps dist-ps all-local: ps dvi: mob.dvi report.dvi mob.dvi : paper/mob.tex paper/mob.bib TEXINPUTS=$TEXINPUTS:paper: latex paper/mob BIBINPUTS=$BIBINPUTS:paper: bibtex paper/mob TEXINPUTS=$TEXINPUTS:paper: latex paper/mob TEXINPUTS=$TEXINPUTS:paper: latex paper/mob report.dvi: report/report.tex report.inc.tex TEXINPUTS=$TEXINPUTS:report: latex report/report TEXINPUTS=$TEXINPUTS:report: latex report/report report.inc.tex: $(inc_files) cat $(inc_files) > report.inc.tex ps: mob.ps report.ps mob.ps: mob.dvi TEXINPUTS=$TEXINPUTS:paper: dvips -o mob.ps mob report.ps: report.dvi TEXINPUTS=$TEXINPUTS:report: dvips -o report.ps report dist-ps: mob.ps mv mob.ps .. clean-local: $(RM) report.inc.tex *.ps *.aux *.log *.bbl *.blg *.dlog *.dvi *.lof *.lot *.toc *~ endif