| [2298a7b8] | 1 | ## Define the appropriate configuration variables. | 
|---|
|  | 2 |  | 
|---|
|  | 3 | MACROS = ../../LaTeXmacros | 
|---|
|  | 4 | BIB = ../../bibliography | 
|---|
|  | 5 |  | 
|---|
|  | 6 | TeXLIB = .:$(MACROS):$(MACROS)/listings:$(MACROS)/enumitem:$(BIB)/: | 
|---|
|  | 7 | LaTeX  = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error | 
|---|
|  | 8 | BibTeX = BIBINPUTS=${TeXLIB} && export BIBINPUTS && bibtex | 
|---|
|  | 9 |  | 
|---|
|  | 10 | ## Define the text source files. | 
|---|
|  | 11 |  | 
|---|
|  | 12 | SOURCES = ${addsuffix .tex, \ | 
|---|
|  | 13 | tuples \ | 
|---|
|  | 14 | } | 
|---|
|  | 15 |  | 
|---|
|  | 16 | FIGURES = ${addsuffix .tex, \ | 
|---|
|  | 17 | } | 
|---|
|  | 18 |  | 
|---|
|  | 19 | PICTURES = ${addsuffix .pstex, \ | 
|---|
|  | 20 | } | 
|---|
|  | 21 |  | 
|---|
|  | 22 | PROGRAMS = ${addsuffix .tex, \ | 
|---|
|  | 23 | } | 
|---|
|  | 24 |  | 
|---|
|  | 25 | GRAPHS = ${addsuffix .tex, \ | 
|---|
|  | 26 | } | 
|---|
|  | 27 |  | 
|---|
|  | 28 | ## Define the documents that need to be made. | 
|---|
|  | 29 |  | 
|---|
|  | 30 | DOCUMENT = tuples.pdf | 
|---|
|  | 31 |  | 
|---|
|  | 32 | # Directives # | 
|---|
|  | 33 |  | 
|---|
|  | 34 | all : ${DOCUMENT} | 
|---|
|  | 35 |  | 
|---|
|  | 36 | clean : | 
|---|
|  | 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} | 
|---|
|  | 39 |  | 
|---|
|  | 40 | # File Dependencies # | 
|---|
|  | 41 |  | 
|---|
|  | 42 | ${DOCUMENT} : ${basename ${DOCUMENT}}.ps | 
|---|
|  | 43 | ps2pdf $< | 
|---|
|  | 44 |  | 
|---|
|  | 45 | ${basename ${DOCUMENT}}.ps : ${basename ${DOCUMENT}}.dvi | 
|---|
|  | 46 | dvips $< -o $@ | 
|---|
|  | 47 |  | 
|---|
|  | 48 | ${basename ${DOCUMENT}}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} ${basename ${DOCUMENT}}.tex \ | 
|---|
|  | 49 | $(MACROS)/common.tex $(MACROS)/indexstyle $(BIB)/cfa.bib | 
|---|
|  | 50 | # Conditionally create an empty *.ind (index) file for inclusion until makeindex is run. | 
|---|
|  | 51 | if [ ! -r ${basename $@}.ind ] ; then touch ${basename $@}.ind ; fi | 
|---|
|  | 52 | # Must have *.aux file containing citations for bibtex | 
|---|
|  | 53 | if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi | 
|---|
|  | 54 | -${BibTeX} ${basename $@} | 
|---|
|  | 55 | # Some citations reference others so run steps again to resolve these citations | 
|---|
|  | 56 | ${LaTeX} ${basename $@}.tex | 
|---|
|  | 57 | -${BibTeX} ${basename $@} | 
|---|
|  | 58 | # Make index from *.aux entries and input index at end of document | 
|---|
|  | 59 | makeindex -s $(MACROS)/indexstyle ${basename $@}.idx | 
|---|
|  | 60 | ${LaTeX} ${basename $@}.tex | 
|---|
|  | 61 | # Run again to get index title into table of contents | 
|---|
|  | 62 | ${LaTeX} ${basename $@}.tex | 
|---|
|  | 63 |  | 
|---|
|  | 64 | predefined : | 
|---|
|  | 65 | sed -f predefined.sed ${basename ${DOCUMENT}}.tex > ${basename $@}.cf | 
|---|
|  | 66 |  | 
|---|
|  | 67 | ## Define the default recipes. | 
|---|
|  | 68 |  | 
|---|
|  | 69 | %.tex : %.fig | 
|---|
|  | 70 | fig2dev -L eepic $< > $@ | 
|---|
|  | 71 |  | 
|---|
|  | 72 | %.ps : %.fig | 
|---|
|  | 73 | fig2dev -L ps $< > $@ | 
|---|
|  | 74 |  | 
|---|
|  | 75 | %.pstex : %.fig | 
|---|
|  | 76 | fig2dev -L pstex $< > $@ | 
|---|
|  | 77 | fig2dev -L pstex_t -p $@ $< > $@_t | 
|---|
|  | 78 |  | 
|---|
|  | 79 | # Local Variables: # | 
|---|
|  | 80 | # compile-command: "make" # | 
|---|
|  | 81 | # End: # | 
|---|