source: doc/theses/thierry_delisle_PhD/comp_II/Makefile @ 807a632

ADTarm-ehast-experimentalenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since 807a632 was df75fe97, checked in by Thierry Delisle <tdelisle@…>, 4 years ago

Committing first draft of my comp-II

  • Property mode set to 100644
File size: 1.9 KB
Line 
1## Define the configuration variables.
2
3Build = build
4Figures = figures
5Macros = ../../../LaTeXmacros
6TeXLIB = .:${Macros}:${Build}:../../../bibliography:
7LaTeX  = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${Build}
8BibTeX = BIBINPUTS=${TeXLIB} && export BIBINPUTS && bibtex
9
10MAKEFLAGS = --no-print-directory --silent #
11VPATH = ${Build} ${Figures}
12
13## Define the text source files.
14
15SOURCES = ${addsuffix .tex, \
16comp_II \
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 = comp_II.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}/indexstyle ../../../bibliography/pl.bib \
55                local.bib glossary.tex | ${Build}
56        # Must have *.aux file containing citations for bibtex
57        if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi
58        -${BibTeX} ${Build}/${basename $@}
59        # Some citations reference others so run again to resolve these citations
60        ${LaTeX} ${basename $@}.tex
61        -${BibTeX} ${Build}/${basename $@}
62        # Make index from *.aux entries and input index at end of document
63        makeglossaries -q -s ${Build}/${basename $@}.ist ${Build}/${basename $@}
64        # Run again to finish citations
65        ${LaTeX} ${basename $@}.tex
66
67## Define the default recipes.
68
69${Build}:
70        mkdir -p ${Build}
71
72%.tex : %.fig ${Build}
73        fig2dev -L eepic $< > ${Build}/$@
74
75%.ps : %.fig | ${Build}
76        fig2dev -L ps $< > ${Build}/$@
77
78%.pstex : %.fig | ${Build}
79        fig2dev -L pstex $< > ${Build}/$@
80        fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t
81
82# Local Variables: #
83# compile-command: "make" #
84# End: #
Note: See TracBrowser for help on using the repository browser.