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