- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/aaron_moss/comp_II/Makefile
r728df66 r23c27039 1 ## Define the appropriateconfiguration variables.1 ## Define the configuration variables. 2 2 3 TeXLIB = .:../LaTeXmacros:../LaTeXmacros/listings:../LaTeXmacros/enumitem:../bibliography/: 4 LaTeX = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error 3 Build = build 4 Figures = figures 5 Macros = ../../../LaTeXmacros 6 TeXLIB = .:${Macros}:${Build}:../../../bibliography: 7 LaTeX = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${Build} 5 8 BibTeX = BIBINPUTS=${TeXLIB} && export BIBINPUTS && bibtex 9 10 MAKEFLAGS = --no-print-directory --silent # 11 VPATH = ${Build} ${Figures} 6 12 7 13 ## Define the text source files. … … 29 35 # Directives # 30 36 37 .PHONY : all clean # not file names 38 31 39 all : ${DOCUMENT} 32 40 33 41 clean : 34 rm -f *.bbl *.aux *.dvi *.idx *.ilg *.ind *.brf *.out *.log *.toc *.blg *.pstex_t *.cf \ 35 ${FIGURES} ${PICTURES} ${PROGRAMS} ${GRAPHS} ${basename ${DOCUMENT}}.ps ${DOCUMENT} 42 @rm -frv ${DOCUMENT} ${basename ${DOCUMENT}}.ps ${Build} 36 43 37 44 # File Dependencies # … … 41 48 42 49 ${basename ${DOCUMENT}}.ps : ${basename ${DOCUMENT}}.dvi 43 dvips $ < -o $@50 dvips ${Build}/$< -o $@ 44 51 45 ${basename ${DOCUMENT}}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} ${basename ${DOCUMENT}}.tex \ 46 ../LaTeXmacros/common.tex ../LaTeXmacros/indexstyle ../bibliography/cfa.bib 47 # Conditionally create an empty *.ind (index) file for inclusion until makeindex is run. 48 if [ ! -r ${basename $@}.ind ] ; then touch ${basename $@}.ind ; fi 52 ${basename ${DOCUMENT}}.dvi : Makefile ${Build} ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} \ 53 ${Macros}/common.tex ${Macros}/indexstyle ../../../bibliography/pl.bib 49 54 # Must have *.aux file containing citations for bibtex 50 55 if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi 51 -${BibTeX} ${ basename $@}52 # Some citations reference others so run stepsagain to resolve these citations56 -${BibTeX} ${Build}/${basename $@} 57 # Some citations reference others so run again to resolve these citations 53 58 ${LaTeX} ${basename $@}.tex 54 -${BibTeX} ${basename $@} 55 # Make index from *.aux entries and input index at end of document 56 makeindex -s ../LaTeXmacros/indexstyle ${basename $@}.idx 59 -${BibTeX} ${Build}/${basename $@} 60 # Run again to finish citations 57 61 ${LaTeX} ${basename $@}.tex 58 # Run again to get index title into table of contents59 ${LaTeX} ${basename $@}.tex60 61 predefined :62 sed -f predefined.sed ${basename ${DOCUMENT}}.tex > ${basename $@}.cf63 62 64 63 ## Define the default recipes. 65 64 65 ${Build}: 66 mkdir -p ${Build} 67 66 68 %.tex : %.fig 67 fig2dev -L eepic $< > $ @69 fig2dev -L eepic $< > ${Build}/$@ 68 70 69 71 %.ps : %.fig 70 fig2dev -L ps $< > $ @72 fig2dev -L ps $< > ${Build}/$@ 71 73 72 74 %.pstex : %.fig 73 fig2dev -L pstex $< > $ @74 fig2dev -L pstex_t -p $ @ $< >$@_t75 fig2dev -L pstex $< > ${Build}/$@ 76 fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t 75 77 76 78 # Local Variables: #
Note: See TracChangeset
for help on using the changeset viewer.