source: doc/user/Makefile @ 47174c4

Last change on this file since 47174c4 was b522435, checked in by Peter A. Buhr <pabuhr@…>, 4 months ago

add BibDir? macro to user-manual Makefile

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