source: doc/user/Makefile @ 565a3d6f

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change on this file since 565a3d6f was 23c27039, checked in by Peter A. Buhr <pabuhr@…>, 7 years ago

further harmonize document Makefile and documents

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