source: doc/user/Makefile @ f90c092

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