| 1 |
# ===================================================================== |
| 2 |
# Makefile for the more_arithmetic library documentation |
| 3 |
# ===================================================================== |
| 4 |
|
| 5 |
# --------------------------------------------------------------------- |
| 6 |
# Pathname to the more_arithmetic 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 theorems |
| 34 |
@echo "TeX files made" |
| 35 |
|
| 36 |
ids: |
| •37 |
@printf '\\chapter{ML Functions in the more\\_arithmetic Library}'>entries.tex |
| 38 |
@printf '\\input{entries-intro}' >> entries.tex |
| 39 |
/bin/sh ${DOCTOTEX} ${DOCTOTEXSED} ${Help}/entries entries.tex |
| 40 |
|
| 41 |
theorems: |
| •42 |
@printf '\\chapter{Pre-proved Theorems}\\label{thms}' > theorems.tex |
| 43 |
@printf '\\input{theorems-intro}' >> theorems.tex |
| 44 |
@printf '\\section{Theorems about Inequalities}'>>theorems.tex |
| 45 |
/bin/sh ${DOCTOTEX} ${DOCTOTEXSED} ${Help}/thms/ineq theorems.tex |
| •46 |
@printf '\\section{Theorems about {\\tt 0}}'>>theorems.tex |
| 47 |
/bin/sh ${DOCTOTEX} ${DOCTOTEXSED} ${Help}/thms/zero_ineq theorems.tex |
| •48 |
@printf '\\section{Theorems about {\\tt SUC}}'>>theorems.tex |
| 49 |
/bin/sh ${DOCTOTEX} ${DOCTOTEXSED} ${Help}/thms/suc theorems.tex |
| •50 |
@printf '\\section{Theorems about {\\tt PRE}}'>>theorems.tex |
| 51 |
/bin/sh ${DOCTOTEX} ${DOCTOTEXSED} ${Help}/thms/pre theorems.tex |
| •52 |
@printf '\\section{Theorems about Addition}'>>theorems.tex |
| 53 |
/bin/sh ${DOCTOTEX} ${DOCTOTEXSED} ${Help}/thms/add theorems.tex |
| •54 |
@printf '\\section{Theorems about Subtraction}'>>theorems.tex |
| 55 |
/bin/sh ${DOCTOTEX} ${DOCTOTEXSED} ${Help}/thms/sub theorems.tex |
| •56 |
@printf '\\section{Theorems about Multiplication and Exponential Functions}'>>theorems.tex |
| 57 |
/bin/sh ${DOCTOTEX} ${DOCTOTEXSED} ${Help}/thms/mult theorems.tex |
| •58 |
@printf '\\section{Theorems about Division}'>>theorems.tex |
| 59 |
/bin/sh ${DOCTOTEX} ${DOCTOTEXSED} ${Help}/thms/div_mod theorems.tex |
| •60 |
@printf '\\section{Theorems about Maximum and Minimum}'>>theorems.tex |
| 61 |
/bin/sh ${DOCTOTEX} ${DOCTOTEXSED} ${Help}/thms/min_max theorems.tex |
| •62 |
@printf '\\section{Theorems about Odd and Even Numbers}'>>theorems.tex |
| 63 |
/bin/sh ${DOCTOTEX} ${DOCTOTEXSED} ${Help}/thms/odd_even theorems.tex |
| 64 |
|
| 65 |
index: |
| 66 |
${MAKEINDEX} more_arithmetic.idx index.tex |
| 67 |
|
| 68 |
more_arithmetic: |
| 69 |
latex more_arithmetic.tex |
| 70 |
|
| 71 |
all: |
| 72 |
make clean; make tex; make more_arithmetic; make index; make more_arithmetic |