[a43dd54] | 1 | ## Define the configuration variables.
|
---|
| 2 |
|
---|
| 3 | Build = build
|
---|
| 4 | Macros = ../../LaTeXmacros
|
---|
| 5 | TeXLIB = .:style:annex:${Macros}:${Build}:/usr/local/bibliographies:
|
---|
| 6 | LaTeX = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${Build} -interaction=nonstopmode
|
---|
| 7 | BibTeX = BIBINPUTS=${TeXLIB} && export BIBINPUTS && bibtex
|
---|
| 8 |
|
---|
| 9 | MAKEFLAGS = --no-print-directory --silent #
|
---|
| 10 |
|
---|
| 11 | ## Define the text source files.
|
---|
| 12 |
|
---|
| 13 | SOURCES = ${addsuffix .tex, \
|
---|
| 14 | Paper \
|
---|
| 15 | style/style \
|
---|
| 16 | style/cfa-format \
|
---|
| 17 | }
|
---|
| 18 |
|
---|
| 19 | FIGURES = ${addsuffix .tex, \
|
---|
| 20 | monitor \
|
---|
| 21 | ext_monitor \
|
---|
| 22 | int_monitor \
|
---|
| 23 | dependency \
|
---|
| 24 | }
|
---|
| 25 |
|
---|
| 26 | PICTURES = ${addsuffix .pstex, \
|
---|
| 27 | system \
|
---|
| 28 | monitor_structs \
|
---|
| 29 | }
|
---|
| 30 |
|
---|
| 31 | PROGRAMS = ${addsuffix .tex, \
|
---|
| 32 | }
|
---|
| 33 |
|
---|
| 34 | GRAPHS = ${addsuffix .tex, \
|
---|
| 35 | }
|
---|
| 36 |
|
---|
| 37 | ## Define the documents that need to be made.
|
---|
| 38 |
|
---|
| 39 | DOCUMENT = Paper.pdf
|
---|
| 40 |
|
---|
| 41 | # Directives #
|
---|
| 42 |
|
---|
| 43 | .PHONY : all clean # not file names
|
---|
| 44 |
|
---|
| 45 | all : ${DOCUMENT}
|
---|
| 46 |
|
---|
| 47 | clean :
|
---|
| 48 | @rm -frv ${DOCUMENT} ${basename ${DOCUMENT}}.ps ${Build}
|
---|
| 49 |
|
---|
| 50 | # File Dependencies #
|
---|
| 51 |
|
---|
| 52 | ${DOCUMENT} : ${basename ${DOCUMENT}}.ps
|
---|
| 53 | ps2pdf $<
|
---|
| 54 |
|
---|
| 55 | ${basename ${DOCUMENT}}.ps : ${basename ${DOCUMENT}}.dvi
|
---|
| 56 | dvips ${Build}/$< -o $@
|
---|
| 57 |
|
---|
| 58 | ${basename ${DOCUMENT}}.dvi : Makefile ${Build} ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} ${basename ${DOCUMENT}}.tex \
|
---|
| 59 | ${Macros}/common.tex ${Macros}/indexstyle annex/local.bib /usr/local/bibliographies/pl.bib
|
---|
| 60 | if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi # Must have *.aux file containing citations for bibtex
|
---|
| 61 | -${BibTeX} ${Build}/${basename $@} # Some citations reference others so run again to resolve these citations
|
---|
| 62 | ${LaTeX} ${basename $@}.tex
|
---|
| 63 | -${BibTeX} ${Build}/${basename $@}
|
---|
| 64 | ${LaTeX} ${basename $@}.tex # Finish citations
|
---|
| 65 |
|
---|
| 66 | ## Define the default recipes.
|
---|
| 67 |
|
---|
| 68 | vpath %.tex ${subst .zzz,,${subst .zzz ,:,${SOURCES}}} # add prefix for source
|
---|
| 69 | vpath %.fig ${subst .zzz,,${subst .zzz ,:,${SOURCES}}} # add prefix for source
|
---|
| 70 |
|
---|
| 71 | ${Build}:
|
---|
| 72 | mkdir -p ${Build}
|
---|
| 73 |
|
---|
| 74 | %.tex : figures/%.fig
|
---|
| 75 | fig2dev -L eepic $< > ${Build}/$@
|
---|
| 76 |
|
---|
| 77 | %.ps : figures/%.fig
|
---|
| 78 | fig2dev -L ps $< > ${Build}/$@
|
---|
| 79 |
|
---|
| 80 | %.pstex : figures/%.fig
|
---|
| 81 | fig2dev -L pstex $< > ${Build}/$@
|
---|
| 82 | fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t
|
---|
| 83 |
|
---|
| 84 | # Local Variables: #
|
---|
| 85 | # tab-width : 4 #
|
---|
| 86 | # compile-command: "make" #
|
---|
| 87 | # End: #
|
---|