source: doc/user/Makefile @ 484ee53

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumwith_gc
Last change on this file since 484ee53 was 484ee53, checked in by Peter A. Buhr <pabuhr@…>, 6 years ago

update Makefiles so ${Build} is order only

  • Property mode set to 100644
File size: 2.2 KB
RevLine 
[5ff188f]1## Define the configuration variables.
[038726d]2
[5ff188f]3Build = build
4Figures = figures
5Macros = ../LaTeXmacros
6TeXLIB = .:${Macros}:${Build}:../bibliography:
7LaTeX  = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${Build}
[e55ca05]8BibTeX = BIBINPUTS=${TeXLIB} && export BIBINPUTS && bibtex
[038726d]9
[5ff188f]10MAKEFLAGS = --no-print-directory --silent #
[23c27039]11VPATH = ${Build} ${Figures}
[5ff188f]12
[038726d]13## Define the text source files.
14
15SOURCES = ${addsuffix .tex, \
16user \
[af4903b]17../refrat/keywords \
[92c0f81]18../refrat/operidents \
[038726d]19}
20
21FIGURES = ${addsuffix .tex, \
[fbefc4d]22EHMHierarchy \
[6b6597c]23Cdecl \
[4096de0]24pointer1 \
[038726d]25}
26
27PICTURES = ${addsuffix .pstex, \
[4096de0]28pointer2 \
[038726d]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
[fb16d5c]40BASE = ${basename ${DOCUMENT}}
[038726d]41
42# Directives #
43
[5ff188f]44.PHONY : all clean                                      # not file names
45
[038726d]46all : ${DOCUMENT}
47
48clean :
[fb16d5c]49        @rm -frv ${DOCUMENT} ${BASE}.ps ${Build}
[038726d]50
51# File Dependencies #
52
[fb16d5c]53${DOCUMENT} : ${BASE}.ps
[038726d]54        ps2pdf $<
55
[fb16d5c]56${BASE}.ps : ${BASE}.dvi
[5ff188f]57        dvips ${Build}/$< -o $@
[038726d]58
[484ee53]59${BASE}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} \
60                ${Macros}/common.tex ${Macros}/lstlang.sty ${Macros}/indexstyle ../bibliography/pl.bib | ${Build}
[038726d]61        # Conditionally create an empty *.ind (index) file for inclusion until makeindex is run.
[5ff188f]62        if [ ! -r ${basename $@}.ind ] ; then touch ${Build}/${basename $@}.ind ; fi
[038726d]63        # Must have *.aux file containing citations for bibtex
64        if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi
[5ff188f]65        -${BibTeX} ${Build}/${basename $@}
66        # Some citations reference others so run again to resolve these citations
[038726d]67        ${LaTeX} ${basename $@}.tex
[5ff188f]68        -${BibTeX} ${Build}/${basename $@}
[038726d]69        # Make index from *.aux entries and input index at end of document
[5ff188f]70        makeindex -s ${Macros}/indexstyle ${Build}/${basename $@}.idx
71        # Run again to finish citations
[038726d]72        ${LaTeX} ${basename $@}.tex
73        # Run again to get index title into table of contents
74        ${LaTeX} ${basename $@}.tex
75
76## Define the default recipes.
77
[5ff188f]78${Build}:
79        mkdir -p ${Build}
80
[484ee53]81%.tex : %.fig | ${Build}
[5ff188f]82        fig2dev -L eepic $< > ${Build}/$@
[038726d]83
[484ee53]84%.ps : %.fig | ${Build}
[5ff188f]85        fig2dev -L ps $< > ${Build}/$@
[038726d]86
[484ee53]87%.pstex : %.fig | ${Build}
[5ff188f]88        fig2dev -L pstex $< > ${Build}/$@
89        fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t
[4096de0]90
[038726d]91# Local Variables: #
92# compile-command: "make" #
93# End: #
Note: See TracBrowser for help on using the repository browser.