source: doc/user/Makefile

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

update user documentation

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