source: doc/refrat/Makefile@ 2e60a1a

ADT aaron-thesis arm-eh ast-experimental cleanup-dtors ctor deferred_resn demangler enum forall-pointer-decay gc_noraii jacob/cs343-translation jenkins-sandbox memory new-ast new-ast-unique-expr new-env no_list persistent-indexer pthread-emulation qualifiedEnum resolv-new string with_gc
Last change on this file since 2e60a1a was 90c3b1c, checked in by Peter A. Buhr <pabuhr@…>, 10 years ago

compile CFA with C++11, further update refrat with lstlisting macros, support varags, enumeration initialization, add implicit separators to output streams, update example programs that print

  • Property mode set to 100644
File size: 1.9 KB
Line 
1## Define the appropriate configuration variables.
2
3Macros =
4TeXLIB = .:${Macros}:
5LaTeX = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex
6BibTeX = BSTINPUTS=${TeXLIB} && export BSTINPUTS && bibtex
7
8## Define the text source files.
9
10SOURCES = ${addsuffix .tex, \
11refrat \
12}
13
14FIGURES = ${addsuffix .tex, \
15}
16
17PICTURES = ${addsuffix .pstex, \
18}
19
20PROGRAMS = ${addsuffix .tex, \
21}
22
23GRAPHS = ${addsuffix .tex, \
24}
25
26## Define the documents that need to be made.
27
28DOCUMENT = refrat.pdf
29
30# Directives #
31
32all : ${DOCUMENT}
33
34clean :
35 rm -f *.bbl *.aux *.dvi *.idx *.ilg *.ind *.brf *.out *.log *.toc *.blg *.pstex_t *.cf \
36 ${FIGURES} ${PICTURES} ${PROGRAMS} ${GRAPHS} ${basename ${DOCUMENT}}.ps ${DOCUMENT}
37
38# File Dependencies #
39
40${DOCUMENT} : ${basename ${DOCUMENT}}.ps
41 ps2pdf $<
42
43${basename ${DOCUMENT}}.ps : ${basename ${DOCUMENT}}.dvi
44 dvips $< -o $@
45
46${basename ${DOCUMENT}}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} ${basename ${DOCUMENT}}.tex ${basename ${DOCUMENT}}.bib
47 # Conditionally create an empty *.ind (index) file for inclusion until makeindex is run.
48 if [ ! -r ${basename $@}.ind ] ; then touch ${basename $@}.ind ; fi
49 # Must have *.aux file containing citations for bibtex
50 if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi
51 -${BibTeX} ${basename $@}
52 # Some citations reference others so run steps again to resolve these citations
53 ${LaTeX} ${basename $@}.tex
54 -${BibTeX} ${basename $@}
55 # Make index from *.aux entries and input index at end of document
56 makeindex -s indexstyle ${basename $@}.idx
57 ${LaTeX} ${basename $@}.tex
58 # Run again to get index title into table of contents
59 ${LaTeX} ${basename $@}.tex
60
61predefined :
62 sed -f predefined.sed ${basename ${DOCUMENT}}.tex > ${basename $@}.cf
63
64## Define the default recipes.
65
66%.tex : %.fig
67 fig2dev -L eepic $< > $@
68
69%.ps : %.fig
70 fig2dev -L ps $< > $@
71
72# Local Variables: #
73# compile-command: "make" #
74# End: #
Note: See TracBrowser for help on using the repository browser.