source: doc/theses/rob_schluntz_MMath/tuples/Makefile @ 1b39705

Last change on this file since 1b39705 was 7a0e8c8, checked in by Andrew Beach <ajbeach@…>, 8 weeks ago

Finally finished the tuple proposal. Feedback is welcome. Moved the old proposal into the thesis, it could also be deleted.

  • Property mode set to 100644
File size: 2.3 KB
RevLine 
[7a0e8c8]1# Makefile for the original tuple proposal (mantained for history's sake).
2
[484ee53]3## Define the configuration variables.
[2298a7b8]4
[484ee53]5Build = build
6Figures = figures
7Macros = ../../LaTeXmacros
8Bib = ../../bibliography
[2298a7b8]9
[484ee53]10TeXLIB = .:${Macros}:${MACROS}/listings:${MACROS}/enumitem:${Bib}/:
11LaTeX  = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${Build}
[2298a7b8]12BibTeX = BIBINPUTS=${TeXLIB} && export BIBINPUTS && bibtex
13
[484ee53]14MAKEFLAGS = --no-print-directory --silent #
15VPATH = ${Build} ${Figures}
16
[2298a7b8]17## Define the text source files.
18
19SOURCES = ${addsuffix .tex, \
20tuples \
21}
22
23FIGURES = ${addsuffix .tex, \
24}
25
26PICTURES = ${addsuffix .pstex, \
27}
28
29PROGRAMS = ${addsuffix .tex, \
30}
31
32GRAPHS = ${addsuffix .tex, \
33}
34
35## Define the documents that need to be made.
36
37DOCUMENT = tuples.pdf
[484ee53]38BASE = ${basename ${DOCUMENT}}
[2298a7b8]39
40# Directives #
41
[484ee53]42.PHONY : all clean                                      # not file names
43
[2298a7b8]44all : ${DOCUMENT}
45
46clean :
[484ee53]47        @rm -frv ${DOCUMENT} ${BASE}.ps ${Build}
[2298a7b8]48
49# File Dependencies #
50
[484ee53]51${DOCUMENT} : ${BASE}.ps
[2298a7b8]52        ps2pdf $<
53
[484ee53]54${BASE}.ps : ${BASE}.dvi
55        dvips ${Build}/$< -o $@
[2298a7b8]56
[484ee53]57${BASE}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} \
58                ${Macros}/common.tex ${Macros}/indexstyle ${Bib}/pl.bib | ${Build}
[2298a7b8]59        # Conditionally create an empty *.ind (index) file for inclusion until makeindex is run.
[484ee53]60        #if [ ! -r ${basename $@}.ind ] ; then touch ${Build}/${basename $@}.ind ; fi
[2298a7b8]61        # Must have *.aux file containing citations for bibtex
62        if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi
[484ee53]63        -${BibTeX} ${Build}/${basename $@}
64        # Some citations reference others so run again to resolve these citations
[2298a7b8]65        ${LaTeX} ${basename $@}.tex
[484ee53]66        -${BibTeX} ${Build}/${basename $@}
[2298a7b8]67        # Make index from *.aux entries and input index at end of document
[484ee53]68        #makeindex -s ${Macros}/indexstyle ${Build}/${basename $@}.idx
69        # Run again to finish citations
[2298a7b8]70        ${LaTeX} ${basename $@}.tex
71        # Run again to get index title into table of contents
72        ${LaTeX} ${basename $@}.tex
73
74predefined :
75        sed -f predefined.sed ${basename ${DOCUMENT}}.tex > ${basename $@}.cf
76
77## Define the default recipes.
78
[484ee53]79${Build}:
80        mkdir -p ${Build}
81
82%.tex : %.fig | ${Build}
83        fig2dev -L eepic $< > ${Build}/$@
[2298a7b8]84
[484ee53]85%.ps : %.fig | ${Build}
86        fig2dev -L ps $< > ${Build}/$@
[2298a7b8]87
[484ee53]88%.pstex : %.fig | ${Build}
89        fig2dev -L pstex $< > ${Build}/$@
90        fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t
[2298a7b8]91
92# Local Variables: #
93# compile-command: "make" #
94# End: #
Note: See TracBrowser for help on using the repository browser.