source: doc/theses/fangren_yu_COOP_S20/Makefile @ 91fb850

ADTarm-ehast-experimentalenumforall-pointer-decayjacob/cs343-translationnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since 91fb850 was 9a05b81, checked in by Peter A. Buhr <pabuhr@…>, 4 years ago

missing Makefile for latex version of Fangren's co-op report

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