1 | ## Define the appropriate configuration variables. |
---|
2 | |
---|
3 | TeXLIB = .:../../LaTeXmacros:../../LaTeXmacros/listings:../../LaTeXmacros/enumitem:~/bibliographies: |
---|
4 | LaTeX = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error |
---|
5 | BibTeX = BIBINPUTS=${TeXLIB} && export BIBINPUTS && bibtex |
---|
6 | |
---|
7 | ## Define the text source files. |
---|
8 | |
---|
9 | SOURCES = ${addsuffix .tex, \ |
---|
10 | concurrency \ |
---|
11 | } |
---|
12 | |
---|
13 | FIGURES = ${addsuffix .tex, \ |
---|
14 | monitor \ |
---|
15 | ext_monitor \ |
---|
16 | } |
---|
17 | |
---|
18 | PICTURES = ${addsuffix .pstex, \ |
---|
19 | } |
---|
20 | |
---|
21 | PROGRAMS = ${addsuffix .tex, \ |
---|
22 | } |
---|
23 | |
---|
24 | GRAPHS = ${addsuffix .tex, \ |
---|
25 | } |
---|
26 | |
---|
27 | ## Define the documents that need to be made. |
---|
28 | |
---|
29 | DOCUMENT = concurrency.pdf |
---|
30 | |
---|
31 | # Directives # |
---|
32 | |
---|
33 | all : ${DOCUMENT} |
---|
34 | |
---|
35 | clean : |
---|
36 | rm -f *.bbl *.aux *.dvi *.idx *.ilg *.ind *.brf *.out *.log *.toc *.blg *.pstex_t *.cf *.glg *.glo *.gls *.ist *.acn *.acr *.alg \ |
---|
37 | ${FIGURES} ${PICTURES} ${PROGRAMS} ${GRAPHS} ${basename ${DOCUMENT}}.ps ${DOCUMENT} |
---|
38 | |
---|
39 | # File Dependencies # |
---|
40 | |
---|
41 | ${DOCUMENT} : ${basename ${DOCUMENT}}.ps |
---|
42 | ps2pdf $< |
---|
43 | |
---|
44 | ${basename ${DOCUMENT}}.ps : ${basename ${DOCUMENT}}.dvi |
---|
45 | dvips $< -o $@ |
---|
46 | |
---|
47 | ${basename ${DOCUMENT}}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} ${basename ${DOCUMENT}}.tex \ |
---|
48 | ../../LaTeXmacros/common.tex ../../LaTeXmacros/indexstyle |
---|
49 | # Conditionally create an empty *.ind (index) file for inclusion until makeindex is run. |
---|
50 | if [ ! -r ${basename $@}.ind ] ; then touch ${basename $@}.ind ; fi |
---|
51 | # Must have *.aux file containing citations for bibtex |
---|
52 | if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi |
---|
53 | -${BibTeX} ${basename $@} |
---|
54 | # Some citations reference others so run steps again to resolve these citations |
---|
55 | ${LaTeX} ${basename $@}.tex |
---|
56 | -${BibTeX} ${basename $@} |
---|
57 | # Make index from *.aux entries and input index at end of document |
---|
58 | makeglossaries ${basename $@} |
---|
59 | #${LaTeX} ${basename $@}.tex |
---|
60 | # Run again to get index title into table of contents |
---|
61 | ${LaTeX} ${basename $@}.tex |
---|
62 | -./bump_ver.sh |
---|
63 | ${LaTeX} ${basename $@}.tex |
---|
64 | |
---|
65 | |
---|
66 | predefined : |
---|
67 | sed -f predefined.sed ${basename ${DOCUMENT}}.tex > ${basename $@}.cf |
---|
68 | |
---|
69 | ## Define the default recipes. |
---|
70 | |
---|
71 | %.tex : %.fig |
---|
72 | fig2dev -L eepic $< > $@ |
---|
73 | |
---|
74 | %.ps : %.fig |
---|
75 | fig2dev -L ps $< > $@ |
---|
76 | |
---|
77 | %.pstex : %.fig |
---|
78 | fig2dev -L pstex $< > $@ |
---|
79 | fig2dev -L pstex_t -p $@ $< > $@_t |
---|
80 | |
---|
81 | |
---|
82 | # Local Variables: # |
---|
83 | # compile-command: "make" # |
---|
84 | # End: # |
---|