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