source: doc/theses/fangren_yu_COOP_F20/Makefile@ 996c8ed

ADT ast-experimental
Last change on this file since 996c8ed was 91571e5, checked in by Peter A. Buhr <pabuhr@…>, 5 years ago

remove unnecessary files, add Fangren Yu F20 report "Optimization of Cforall Compiler with Case Studies", update associated bibliography entries

  • 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, \
20}
21
22PICTURES = ${addsuffix .pstex, \
23}
24
25PROGRAMS = ${addsuffix .tex, \
26}
27
28GRAPHS = ${addsuffix .tex, \
29}
30
31## Define the documents that need to be made.
32
33DOCUMENT = Report.pdf
34BASE = ${basename ${DOCUMENT}}
35
36# Directives #
37
38.PHONY : all clean # not file names
39
40all : ${DOCUMENT}
41
42clean :
43 @rm -frv ${DOCUMENT} ${BASE}.ps ${Build}
44
45# File Dependencies #
46
47${DOCUMENT} : ${BASE}.ps
48 ps2pdf $<
49
50${BASE}.ps : ${BASE}.dvi
51 dvips ${Build}/$< -o $@
52
53${BASE}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} \
54 ${Macros}/common.tex ${Macros}/lstlang.sty ${Macros}/indexstyle ../../bibliography/pl.bib | ${Build}
55 # Conditionally create an empty *.ind (index) file for inclusion until makeindex is run.
56 if [ ! -r ${basename $@}.ind ] ; then touch ${Build}/${basename $@}.ind ; fi
57 # Must have *.aux file containing citations for bibtex
58 if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi
59 -${BibTeX} ${Build}/${basename $@}
60 # Some citations reference others so run again to resolve these citations
61 ${LaTeX} ${basename $@}.tex
62 -${BibTeX} ${Build}/${basename $@}
63 # Make index from *.aux entries and input index at end of document
64 makeindex -s ${Macros}/indexstyle ${Build}/${basename $@}.idx
65 # Run again to finish citations
66 ${LaTeX} ${basename $@}.tex
67 # Run again to get index title into table of contents
68 ${LaTeX} ${basename $@}.tex
69
70## Define the default recipes.
71
72${Build} :
73 mkdir -p ${Build}
74
75%.tex : %.fig | ${Build}
76 fig2dev -L eepic $< > ${Build}/$@
77
78%.ps : %.fig | ${Build}
79 fig2dev -L ps $< > ${Build}/$@
80
81%.pstex : %.fig | ${Build}
82 fig2dev -L pstex $< > ${Build}/$@
83 fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t
84
85# Local Variables: #
86# compile-command: "make" #
87# End: #
Note: See TracBrowser for help on using the repository browser.