source: doc/user/Makefile @ 40290497

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resnenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprno_listpersistent-indexerpthread-emulationqualifiedEnum
Last change on this file since 40290497 was 3b1825b, checked in by Peter A. Buhr <pabuhr@…>, 6 years ago

seperate bibtex and latex library files in Makefile variables

  • Property mode set to 100644
File size: 2.4 KB
Line 
1## Define the configuration variables.
2
3Build = build
4Figures = figures
5Macros = ../LaTeXmacros
6TeXLIB = .:${Macros}:${Build}:
7LaTeX  = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${Build}
8BibTeX = BIBINPUTS=../bibliography: && 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
40BASE = ${basename ${DOCUMENT}}
41
42# Directives #
43
44.PHONY : all clean                                      # not file names
45
46all : ${DOCUMENT}
47
48clean :
49        @rm -frv ${DOCUMENT} ${BASE}.ps ${Build}
50
51# File Dependencies #
52
53build/version: ../../configure | ${Build}
54        ../../configure --version | grep "cfa-cc configure" | grep -oEe "([0-9]+\.)+[0-9]+" > $@
55
56${DOCUMENT} : ${BASE}.ps
57        ps2pdf $<
58
59${BASE}.ps : ${BASE}.dvi
60        dvips ${Build}/$< -o $@
61
62${BASE}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} \
63                ${Macros}/common.tex ${Macros}/lstlang.sty ${Macros}/indexstyle ../bibliography/pl.bib build/version | ${Build}
64        # Conditionally create an empty *.ind (index) file for inclusion until makeindex is run.
65        if [ ! -r ${basename $@}.ind ] ; then touch ${Build}/${basename $@}.ind ; fi
66        # Must have *.aux file containing citations for bibtex
67        if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi
68        -${BibTeX} ${Build}/${basename $@}
69        # Some citations reference others so run again to resolve these citations
70        ${LaTeX} ${basename $@}.tex
71        -${BibTeX} ${Build}/${basename $@}
72        # Make index from *.aux entries and input index at end of document
73        makeindex -s ${Macros}/indexstyle ${Build}/${basename $@}.idx
74        # Run again to finish citations
75        ${LaTeX} ${basename $@}.tex
76        # Run again to get index title into table of contents
77        ${LaTeX} ${basename $@}.tex
78
79## Define the default recipes.
80
81${Build}:
82        mkdir -p ${Build}
83
84%.tex : %.fig | ${Build}
85        fig2dev -L eepic $< > ${Build}/$@
86
87%.ps : %.fig | ${Build}
88        fig2dev -L ps $< > ${Build}/$@
89
90%.pstex : %.fig | ${Build}
91        fig2dev -L pstex $< > ${Build}/$@
92        fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t
93
94# Local Variables: #
95# compile-command: "make" #
96# End: #
Note: See TracBrowser for help on using the repository browser.