source: doc/user/Makefile@ af4903b

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

missing Makefile

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