- File:
-
- 1 edited
-
doc/theses/thierry_delisle/Makefile (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/thierry_delisle/Makefile
re76bd39 r484ee53 1 ## Define the appropriateconfiguration variables.1 ## Define the configuration variables. 2 2 3 TeXLIB = .:./style:./text:./annex:./build:../../LaTeXmacros:../../LaTeXmacros/listings:../../LaTeXmacros/enumitem:~/bibliographies:/usr/local/bibliographies: 4 LaTeX = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=build -interaction=nonstopmode 3 Build = build 4 Figures = figures 5 Macros = ../../LaTeXmacros 6 TeXLIB = .:style:text:annex:${Macros}:${Build}:../../bibliography: 7 LaTeX = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${Build} 5 8 BibTeX = BIBINPUTS=${TeXLIB} && export BIBINPUTS && bibtex -terse 9 10 MAKEFLAGS = --no-print-directory --silent # 11 VPATH = ${Build} ${Figures} 6 12 7 13 ## Define the text source files. … … 24 30 } 25 31 26 FIGURES = ${add prefix build/, ${addsuffix .tex, \27 monitor \28 ext_monitor \29 int_monitor \30 dependency \31 } }32 FIGURES = ${addsuffix .tex, \ 33 monitor \ 34 ext_monitor \ 35 int_monitor \ 36 dependency \ 37 } 32 38 33 PICTURES = ${add prefix build/, ${addsuffix .pstex, \34 system \35 monitor_structs \36 } }39 PICTURES = ${addsuffix .pstex, \ 40 system \ 41 monitor_structs \ 42 } 37 43 38 44 PROGRAMS = ${addsuffix .tex, \ … … 45 51 46 52 DOCUMENT = thesis.pdf 53 BASE = ${basename ${DOCUMENT}} 47 54 48 55 # Directives # 56 57 .PHONY : all clean # not file names 49 58 50 59 all : ${DOCUMENT} 51 60 52 61 clean : 53 @rm -fv ${DOCUMENT} \ 54 build/*.acn \ 55 build/*.acr \ 56 build/*.alg \ 57 build/*.aux \ 58 build/*.bbl \ 59 build/*.blg \ 60 build/*.brf \ 61 build/*.cf \ 62 build/*.dvi \ 63 build/*.glg \ 64 build/*.glo \ 65 build/*.gls \ 66 build/*.ist \ 67 build/*.idx \ 68 build/*.ilg \ 69 build/*.ind \ 70 build/*.log \ 71 build/*.out \ 72 build/*.ps \ 73 build/*.pstex \ 74 build/*.pstex_t \ 75 build/*.tex \ 76 build/*.toc \ 77 build/*.lof \ 78 build/*.lol \ 79 build/*.lot \ 80 figures/*.tex \ 81 *.png \ 82 62 @rm -frv ${DOCUMENT} ${BASE}.ps ${Build} 83 63 84 64 # File Dependencies # 85 65 86 ${DOCUMENT} : build/${basename ${DOCUMENT}}.ps66 ${DOCUMENT} : ${BASE}.ps 87 67 ps2pdf $< 88 68 89 build/${basename ${DOCUMENT}}.ps : build/${basename ${DOCUMENT}}.dvi90 dvips $ < -o $@69 ${BASE}.ps : ${BASE}.dvi 70 dvips ${Build}/$< -o $@ 91 71 92 build/${basename ${DOCUMENT}}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} ${basename ${DOCUMENT}}.tex ../../LaTeXmacros/common.tex ../../LaTeXmacros/indexstyle annex/local.bib 93 94 @ if [ ! -r ${basename $@}.ind ] ; then touch ${basename $@}.ind ; fi # Conditionally create an empty *.ind (index) file for inclusion until makeindex is run. 95 @ echo "Citation lookup" # Must have *.aux file containing citations for bibtex 96 @ if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename ${notdir $@}}.tex ; fi 97 @ echo "Citation Pass 1" 98 @ -${BibTeX} ${basename $@} # Some citations reference others so run steps again to resolve these citations 99 @ echo "Citation Pass 2" 100 @ ${LaTeX} ${basename ${notdir $@}}.tex 101 @ -${BibTeX} ${basename $@} 102 @ echo "Glossary" 103 @ makeglossaries -q -s ${basename $@}.ist ${basename $@} # Make index from *.aux entries and input index at end of document 104 @ echo ".dvi generation" 105 @ -build/bump_ver.sh 106 @ ${LaTeX} ${basename ${notdir $@}}.tex # Run again to get index title into table of contents 107 108 109 predefined : 110 sed -f predefined.sed ${basename ${DOCUMENT}}.tex > ${basename $@}.cf 72 ${BASE}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} \ 73 ${Macros}/common.tex ${Macros}/indexstyle annex/local.bib ../../bibliography/pl.bib | ${Build} 74 # Must have *.aux file containing citations for bibtex 75 if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi 76 -${BibTeX} ${Build}/${basename $@} 77 # Some citations reference others so run again to resolve these citations 78 ${LaTeX} ${basename $@}.tex 79 -${BibTeX} ${Build}/${basename $@} 80 # Make index from *.aux entries and input index at end of document 81 makeglossaries -q -s ${Build}/${basename $@}.ist ${Build}/${basename $@} 82 -version.sh 83 # Run again to finish citations 84 ${LaTeX} ${basename $@}.tex 111 85 112 86 ## Define the default recipes. 113 87 114 build/%.tex : figures/%.fig 115 fig2dev -L eepic $< > $@88 ${Build}: 89 mkdir -p ${Build} 116 90 117 build/%.ps : figures/%.fig 118 fig2dev -L ps $< >$@91 %.tex : %.fig ${Build} 92 fig2dev -L eepic $< > ${Build}/$@ 119 93 120 build/%.pstex : figures/%.fig 121 fig2dev -L pstex $< > $@ 122 fig2dev -L pstex_t -p $@ $< > $@_t 94 %.ps : %.fig | ${Build} 95 fig2dev -L ps $< > ${Build}/$@ 96 97 %.pstex : %.fig | ${Build} 98 fig2dev -L pstex $< > ${Build}/$@ 99 fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t 123 100 124 101 #----------------------------------------------------------------------------------- 125 102 # Tools to generate png files 126 103 # to create a png we create a pdf and convert it to png 127 %.png : build/%.pstex figures/%.tex 104 %.png : build/%.pstex figures/%.tex ${Build} 128 105 echo ${basename $@} 129 106 ${LaTeX} figures/${basename $@}.tex … … 133 110 134 111 # creating a pdf of a figure requires generating some latex that just includes the figure 135 figures/%.tex: build/%.pstex 112 figures/%.tex: build/%.pstex ${Build} 136 113 echo -n "\documentclass[preview]{standalone}\n" \ 137 114 "\usepackage[T1]{fontenc}\n" \ … … 145 122 "\end{document}" > $@ 146 123 147 148 149 124 # Local Variables: # 150 125 # compile-command: "make" #
Note:
See TracChangeset
for help on using the changeset viewer.