## Define the configuration variables. Build = build Figures = figures Macros = ../../LaTeXmacros TeXLIB = .:style:annex:${Macros}:${Build}:../../bibliography: LaTeX = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${Build} BibTeX = BIBINPUTS=${TeXLIB} && export BIBINPUTS && bibtex MAKEFLAGS = --no-print-directory --silent # VPATH = ${Build} ${Figures} ## Define the text source files. SOURCES = ${addsuffix .tex, \ Paper \ style/style \ style/cfa-format \ } FIGURES = ${addsuffix .tex, \ monitor \ ext_monitor \ int_monitor \ dependency \ } PICTURES = ${addsuffix .pstex, \ system \ monitor_structs \ } PROGRAMS = ${addsuffix .tex, \ } GRAPHS = ${addsuffix .tex, \ } ## Define the documents that need to be made. DOCUMENT = Paper.pdf # Directives # .PHONY : all clean # not file names all : ${DOCUMENT} clean : @rm -frv ${DOCUMENT} ${basename ${DOCUMENT}}.ps ${Build} # File Dependencies # ${DOCUMENT} : ${basename ${DOCUMENT}}.ps ps2pdf $< ${basename ${DOCUMENT}}.ps : ${basename ${DOCUMENT}}.dvi dvips ${Build}/$< -o $@ ${basename ${DOCUMENT}}.dvi : Makefile ${Build} ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} \ ${Macros}/common.tex ${Macros}/indexstyle annex/local.bib ../../bibliography/pl.bib # Must have *.aux file containing citations for bibtex if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi -${BibTeX} ${Build}/${basename $@} # Some citations reference others so run again to resolve these citations ${LaTeX} ${basename $@}.tex -${BibTeX} ${Build}/${basename $@} # Run again to finish citations ${LaTeX} ${basename $@}.tex ## Define the default recipes. ${Build}: mkdir -p ${Build} %.tex : %.fig fig2dev -L eepic $< > ${Build}/$@ %.ps : %.fig fig2dev -L ps $< > ${Build}/$@ %.pstex : %.fig fig2dev -L pstex $< > ${Build}/$@ fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t # Local Variables: # # compile-command: "make" # # End: #