Debian Codegraph @

Library/trs/Manual/Makefile

raw ◀ ▶
1 Debian patch touch this file
1 # =====================================================================
2 # Makefile for the trs library documentation
3 # =====================================================================
4
5 # ---------------------------------------------------------------------
6 # Pathname to the trs help files
7 # ---------------------------------------------------------------------
8 Help=../help
9
10 # ---------------------------------------------------------------------
11 # Pathname to the doc-to-tex script and doc-to-tex.sed file
12 # ---------------------------------------------------------------------
13 DOCTOTEX=../../../Manual/Reference/bin/doc-to-tex
14 DOCTOTEXSED=../../../Manual/Reference/bin/doc-to-tex.sed
15
16 # ---------------------------------------------------------------------
17 # Pathname to the makeindex script
18 # ---------------------------------------------------------------------
19 MAKEINDEX=../../../Manual/LaTeX/makeindex ../../../
20
21 default:
22 @echo "INSTRUCTIONS: Type \"make all\" to make the documentation"
23
24 # ---------------------------------------------------------------------
25 # Remove all trace of previous LaTeX jobs
26 # ---------------------------------------------------------------------
27 clean:
28 rm -f *.dvi *.aux *.toc *.log *.idx *.ilg
•29 @printf '\\begin{theindex}' > index.tex
30 @printf '\\mbox{}' >> index.tex
31 @printf '\\end{theindex}' >> index.tex
32
33 tex: ids
34 @echo "TeX files made"
35
36 ids:
•37 @printf '\\chapter{ML Functions in the trs Library}'>entries.tex
38 @printf '\\input{entries-intro}' >> entries.tex
39 /bin/sh ${DOCTOTEX} ${DOCTOTEXSED} ${Help}/entries entries.tex
40
41 index:
42 ${MAKEINDEX} trs.idx index.tex
43
44 trs:
45 latex trs.tex
46
47 all:
48 make clean; make tex; make trs; make index; make trs