- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified doc/proposals/concurrency/Makefile ¶
rff98952 r0f9bef3 1 1 ## Define the appropriate configuration variables. 2 2 3 TeXLIB = .:. /style:./text:./annex:./build:../../LaTeXmacros:../../LaTeXmacros/listings:../../LaTeXmacros/enumitem:~/bibliographies:4 LaTeX = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=build -interaction=nonstopmode5 BibTeX = BIBINPUTS=${TeXLIB} && export BIBINPUTS && bibtex -terse3 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 6 7 7 ## Define the text source files. 8 8 9 9 SOURCES = ${addsuffix .tex, \ 10 thesis \ 11 style/style \ 12 style/cfa-format \ 13 annex/glossary \ 14 text/intro \ 15 text/basics \ 16 text/concurrency \ 17 text/parallelism \ 10 concurrency \ 11 style \ 12 cfa-format \ 13 glossary \ 18 14 } 19 15 20 FIGURES = ${add prefix build/, ${addsuffix .tex, \16 FIGURES = ${addsuffix .tex, \ 21 17 monitor \ 22 18 ext_monitor \ 23 } }19 } 24 20 25 21 PICTURES = ${addsuffix .pstex, \ … … 34 30 ## Define the documents that need to be made. 35 31 36 DOCUMENT = thesis.pdf32 DOCUMENT = concurrency.pdf 37 33 38 34 # Directives # … … 41 37 42 38 clean : 43 @rm -fv ${DOCUMENT} \ 44 build/*.acn \ 45 build/*.acr \ 46 build/*.alg \ 47 build/*.aux \ 48 build/*.bbl \ 49 build/*.blg \ 50 build/*.brf \ 51 build/*.cf \ 52 build/*.dvi \ 53 build/*.glg \ 54 build/*.glo \ 55 build/*.gls \ 56 build/*.ist \ 57 build/*.idx \ 58 build/*.ilg \ 59 build/*.ind \ 60 build/*.log \ 61 build/*.out \ 62 build/*.ps \ 63 build/*.pstex_t \ 64 build/*.tex \ 65 build/*.toc \ 66 39 rm -f *.bbl *.aux *.dvi *.idx *.ilg *.ind *.brf *.out *.log *.toc *.blg *.pstex_t *.cf *.glg *.glo *.gls *.ist *.acn *.acr *.alg \ 40 ${FIGURES} ${PICTURES} ${PROGRAMS} ${GRAPHS} ${basename ${DOCUMENT}}.ps ${DOCUMENT} 67 41 68 42 # File Dependencies # 69 43 70 ${DOCUMENT} : build/${basename ${DOCUMENT}}.ps44 ${DOCUMENT} : ${basename ${DOCUMENT}}.ps 71 45 ps2pdf $< 72 46 73 build/${basename ${DOCUMENT}}.ps : build/${basename ${DOCUMENT}}.dvi47 ${basename ${DOCUMENT}}.ps : ${basename ${DOCUMENT}}.dvi 74 48 dvips $< -o $@ 75 49 76 build/${basename ${DOCUMENT}}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} ${basename ${DOCUMENT}}.tex ../../LaTeXmacros/common.tex ../../LaTeXmacros/indexstyle 77 78 @ if [ ! -r ${basename $@}.ind ] ; then touch ${basename $@}.ind ; fi # Conditionally create an empty *.ind (index) file for inclusion until makeindex is run. 79 @ echo "Citation lookup" # Must have *.aux file containing citations for bibtex 80 @ if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename ${notdir $@}}.tex ; fi 81 @ echo "Citation Pass 1" 82 @ -${BibTeX} ${basename $@} # Some citations reference others so run steps again to resolve these citations 83 @ echo "Citation Pass 2" 84 @ ${LaTeX} ${basename ${notdir $@}}.tex 85 @ -${BibTeX} ${basename $@} 86 @ echo "Glossary" 87 makeglossaries -q -s ${basename $@}.ist ${basename $@} # Make index from *.aux entries and input index at end of document 88 @ echo ".dvi generation" 89 @ -build/bump_ver.sh 90 @ ${LaTeX} ${basename ${notdir $@}}.tex # Run again to get index title into table of contents 50 ${basename ${DOCUMENT}}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} ${basename ${DOCUMENT}}.tex \ 51 ../../LaTeXmacros/common.tex ../../LaTeXmacros/indexstyle 52 # Conditionally create an empty *.ind (index) file for inclusion until makeindex is run. 53 if [ ! -r ${basename $@}.ind ] ; then touch ${basename $@}.ind ; fi 54 # Must have *.aux file containing citations for bibtex 55 if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi 56 -${BibTeX} ${basename $@} 57 # Some citations reference others so run steps again to resolve these citations 58 ${LaTeX} ${basename $@}.tex 59 -${BibTeX} ${basename $@} 60 # Make index from *.aux entries and input index at end of document 61 makeglossaries ${basename $@} 62 #${LaTeX} ${basename $@}.tex 63 # Run again to get index title into table of contents 64 ${LaTeX} ${basename $@}.tex 65 -./bump_ver.sh 66 ${LaTeX} ${basename $@}.tex 91 67 92 68 … … 96 72 ## Define the default recipes. 97 73 98 build/%.tex : figures/%.fig74 %.tex : %.fig 99 75 fig2dev -L eepic $< > $@ 100 76 101 build/%.ps : figures/%.fig77 %.ps : %.fig 102 78 fig2dev -L ps $< > $@ 103 79 104 build/%.pstex : figures/%.fig80 %.pstex : %.fig 105 81 fig2dev -L pstex $< > $@ 106 82 fig2dev -L pstex_t -p $@ $< > $@_t
Note: See TracChangeset
for help on using the changeset viewer.