source: doc/user/Makefile

Last change on this file was a514fed, checked in by Peter A. Buhr <pabuhr@…>, 7 days ago

update user documentation

  • Property mode set to 100644
File size: 2.6 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
49INSTALLDOCDIR = /u/cforall/public_html/doc
50install : all ${INSTALLDOCDIR}
51        cp -f ${DOCUMENT} ${INSTALLDOCDIR}/${DOCUMENT}
52
53clean :
54        @rm -frv ${DOCUMENT} ${BASE}.ps ${Build}
55
56# File Dependencies #
57
58build/version: ../../configure | ${Build}
59        ../../configure --version | grep "cfa-cc configure" | grep -oEe "([0-9]+\.)+[0-9]+" > $@
60
61${DOCUMENT} : ${BASE}.ps
62        ps2pdf -dPDFSETTINGS=/prepress $<
63
64${BASE}.ps : ${BASE}.dvi
65        dvips ${Build}/$< -o $@
66
67${BASE}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} ${Macros}/common.tex ${Macros}/common.sty \
68                ${Macros}/lstlang.sty ${Macros}/indexstyle ${BibDir}/pl.bib build/version | ${Build}
69        # Conditionally create an empty *.ind (index) file for inclusion until makeindex is run.
70        if [ ! -r ${basename $@}.ind ] ; then touch ${Build}/${basename $@}.ind ; fi
71        # Must have *.aux file containing citations for bibtex
72        if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi
73        -${BibTeX} ${Build}/${basename $@}
74        # Some citations reference others so run again to resolve these citations
75        ${LaTeX} ${basename $@}.tex
76#       -${BibTeX} ${Build}/${basename $@}
77        # Make index from *.aux entries and input index at end of document
78        makeindex -s ${Macros}/indexstyle ${Build}/${basename $@}.idx
79        # Run again to finish citations
80#       ${LaTeX} ${basename $@}.tex
81        # Run again to get index title into table of contents
82#       ${LaTeX} ${basename $@}.tex
83
84## Define the default recipes.
85
86${Build} :
87        mkdir -p ${Build}
88
89%.tex : %.fig | ${Build}
90        fig2dev -L eepic $< > ${Build}/$@
91
92%.ps : %.fig | ${Build}
93        fig2dev -L ps $< > ${Build}/$@
94
95%.pstex : %.fig | ${Build}
96        fig2dev -L pstex $< > ${Build}/$@
97        fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t
98
99# Local Variables: #
100# compile-command: "make" #
101# End: #
Note: See TracBrowser for help on using the repository browser.