3 include ../../Version.incl
6 include ../../Makefile.incl
8 FILES = Chap1.tex Chap2.tex Chap3.tex Chap4.tex Chap5.tex \
9 Chap6.tex Chap7.tex Chap8.tex Chap9.tex Chap10.tex \
10 Chap11.tex Chap12.tex Chap13.tex Chap14.tex Chap15.tex \
11 Chap16.tex Chap17.tex Chap19.tex Chap20.tex \
12 Chap21.tex Chap5-1.tex Chap5-2.tex Chap5-3.tex Chap5-4.tex
17 TR2TEX = tr2latex/translate
20 all:: $(SCIDOC)/Manual.ps
25 @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
26 for i in $(SUBDIRS) ;\
28 (cd $$i ; echo "making" clean "in LaTeX-doc/$$i..."; \
29 $(MAKE) $(MFLAGS) clean); \
33 @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
34 for i in $(SUBDIRS) ;\
36 (cd $$i ; echo "making" distclean "in LaTeX-doc/$$i..."; \
37 $(MAKE) $(MFLAGS) distclean); \
40 $(SCIDOC)/Manual.ps: Tr2tex chapters couvert.tex couv2.ps
44 makeindex -s Docu.isty Docu.idx
49 pdf: Tr2tex chapters couvert.tex couv2.ps
50 awk '{if ($$1~"documentstyle") \
51 {printf "\\documentstyle[verbatim,tr2latex/troffman,makeidx,hyperref,times]{book}\n"} else {print $$0} }' \
52 Docu.tex > Docu_pdf.tex
56 makeindex -s Docu.isty Docu_pdf.idx
58 dvips -z -o Manual_pdf.ps Docu_pdf.dvi
60 mv Manual_pdf.pdf ../Manual.pdf
66 dvips -o couv2.ps couv2.dvi
70 Tr2tex : tr2latex/*.c tr2latex/*.h
71 cd tr2latex ; $(MAKE) $(MFLAGS)
73 Chap1.tex : $(TR2TEX) $(MAN)/programming/*.man
74 $(TR2TEX) -m $(MAN)/programming/?*.man > /tmp/Chap1.tex
75 @sed -e 's/\\documentstyle/%\\documentstyle/' -e 's/\\end{document}//' -e 's/\\begin{document}//' /tmp/Chap1.tex > Chap1.tex
78 Chap2.tex : $(TR2TEX) $(MAN)/graphics/?*.man
79 $(TR2TEX) -m $(MAN)/graphics/?*.man > /tmp/Chap2.tex
80 @sed -e 's/\\documentstyle/%\\documentstyle/' -e 's/\\end{document}//' -e 's/\\begin{document}//' /tmp/Chap2.tex > Chap2.tex
83 Chap3.tex : $(TR2TEX) $(MAN)/elementary/?*.man
84 $(TR2TEX) -m $(MAN)/elementary/?*.man > /tmp/Chap3.tex
85 @sed -e 's/\\documentstyle/%\\documentstyle/' -e 's/\\end{document}//' -e 's/\\begin{document}//' /tmp/Chap3.tex > Chap3.tex
88 Chap4.tex : $(TR2TEX) $(MAN)/fileio/?*.man
89 $(TR2TEX) -m $(MAN)/fileio/?*.man > /tmp/Chap4.tex
90 @sed -e 's/\\documentstyle/%\\documentstyle/' -e 's/\\end{document}//' -e 's/\\begin{document}//' /tmp/Chap4.tex > Chap4.tex
93 Chap5.tex : $(TR2TEX) $(MAN)/functions/?*.man
94 $(TR2TEX) -m $(MAN)/functions/?*.man > /tmp/Chap5.tex
95 @sed -e 's/\\documentstyle/%\\documentstyle/' -e 's/\\end{document}//' -e 's/\\begin{document}//' /tmp/Chap5.tex > Chap5.tex
98 Chap5-1.tex : $(TR2TEX) $(MAN)/strings/?*.man
99 $(TR2TEX) -m $(MAN)/strings/?*.man > /tmp/Chap5-1.tex
100 @sed -e 's/\\documentstyle/%\\documentstyle/' -e 's/\\end{document}//' -e 's/\\begin{document}//' /tmp/Chap5-1.tex > Chap5-1.tex
101 $(RM) /tmp/Chap5-1.tex
103 Chap5-2.tex : $(TR2TEX) $(MAN)/gui/?*.man
104 $(TR2TEX) -m $(MAN)/gui/?*.man > /tmp/Chap5-2.tex
105 @sed -e 's/\\documentstyle/%\\documentstyle/' -e 's/\\end{document}//' -e 's/\\begin{document}//' /tmp/Chap5-2.tex > Chap5-2.tex
106 $(RM) /tmp/Chap5-2.tex
108 Chap5-3.tex : $(TR2TEX) $(MAN)/utilities/?*.man
109 $(TR2TEX) -m $(MAN)/utilities/?*.man > /tmp/Chap5-3.tex
110 @sed -e 's/\\documentstyle/%\\documentstyle/' -e 's/\\end{document}//' -e 's/\\begin{document}//' /tmp/Chap5-3.tex > Chap5-3.tex
111 $(RM) /tmp/Chap5-3.tex
113 Chap5-4.tex : $(TR2TEX) $(MAN)/time-date/?*.man
114 $(TR2TEX) -m $(MAN)/time-date/?*.man > /tmp/Chap5-4.tex
115 @sed -e 's/\\documentstyle/%\\documentstyle/' -e 's/\\end{document}//' -e 's/\\begin{document}//' /tmp/Chap5-4.tex > Chap5-4.tex
116 $(RM) /tmp/Chap5-4.tex
118 Chap6.tex : $(TR2TEX) $(MAN)/control/?*.man
119 $(TR2TEX) -m $(MAN)/control/?*.man > /tmp/Chap6.tex
120 @sed -e 's/\\documentstyle/%\\documentstyle/' -e 's/\\end{document}//' -e 's/\\begin{document}//' /tmp/Chap6.tex > Chap6.tex
123 Chap7.tex : $(TR2TEX) $(MAN)/robust/?*.man
124 $(TR2TEX) -m $(MAN)/robust/?*.man > /tmp/Chap7.tex
125 @sed -e 's/\\documentstyle/%\\documentstyle/' -e 's/\\end{document}//' -e 's/\\begin{document}//' /tmp/Chap7.tex > Chap7.tex
128 Chap8.tex : $(TR2TEX) $(MAN)/nonlinear/?*.man
129 $(TR2TEX) -m $(MAN)/nonlinear/?*.man > /tmp/Chap8.tex
130 @sed -e 's/\\documentstyle/%\\documentstyle/' -e 's/\\end{document}//' -e 's/\\begin{document}//' /tmp/Chap8.tex > Chap8.tex
133 Chap9.tex : $(TR2TEX) $(MAN)/signal/?*.man
134 $(TR2TEX) -m $(MAN)/signal/?*.man > /tmp/Chap9.tex
135 @sed -e 's/\\documentstyle/%\\documentstyle/' -e 's/\\end{document}//' -e 's/\\begin{document}//' /tmp/Chap9.tex > Chap9.tex
138 Chap10.tex : $(TR2TEX) $(MAN)/polynomials/?*.man
139 $(TR2TEX) -m $(MAN)/polynomials/?*.man > /tmp/Chap10.tex
140 @sed -e 's/\\documentstyle/%\\documentstyle/' -e 's/\\end{document}//' -e 's/\\begin{document}//' /tmp/Chap10.tex > Chap10.tex
141 $(RM) /tmp/Chap10.tex
143 Chap11.tex : $(TR2TEX) $(MAN)/linear/?*.man
144 $(TR2TEX) -m $(MAN)/linear/?*.man > /tmp/Chap11.tex
145 @sed -e 's/\\documentstyle/%\\documentstyle/' -e 's/\\end{document}//' -e 's/\\begin{document}//' /tmp/Chap11.tex > Chap11.tex
146 $(RM) /tmp/Chap11.tex
148 Chap12.tex : $(TR2TEX) $(MAN)/metanet/?*.man
149 $(TR2TEX) -m $(MAN)/metanet/?*.man > /tmp/Chap12.tex
150 @sed -e 's/\\documentstyle/%\\documentstyle/' -e 's/\\end{document}//' -e 's/\\begin{document}//' /tmp/Chap12.tex > Chap12.tex
151 $(RM) /tmp/Chap12.tex
153 Chap13.tex : $(TR2TEX) $(MAN)/arma/?*.man
154 $(TR2TEX) -m $(MAN)/arma/?*.man > /tmp/Chap13.tex
155 @sed -e 's/\\documentstyle/%\\documentstyle/' -e 's/\\end{document}//' -e 's/\\begin{document}//' /tmp/Chap13.tex > Chap13.tex
156 $(RM) /tmp/Chap13.tex
158 Chap14.tex : $(TR2TEX) $(MAN)/tdcs/?*.man
159 $(TR2TEX) -m $(MAN)/tdcs/?*.man > /tmp/Chap14.tex
160 @sed -e 's/\\documentstyle/%\\documentstyle/' -e 's/\\end{document}//' -e 's/\\begin{document}//' /tmp/Chap14.tex > Chap14.tex
161 $(RM) /tmp/Chap14.tex
163 Chap15.tex : $(TR2TEX) $(MAN)/scicos/?*.man
164 @echo "\section{Scicos editor}" > /tmp/Chap15.tex
165 $(TR2TEX) -m $(MAN)/scicos/scicos.man >> /tmp/Chap15.tex
166 $(TR2TEX) -m $(MAN)/scicos/scicos_menus.man >> /tmp/Chap15.tex
167 @echo "\section{Blocks}" >> /tmp/Chap15.tex
168 $(TR2TEX) -m $(MAN)/scicos/?*_f.man >> /tmp/Chap15.tex
169 $(TR2TEX) -m $(MAN)/scicos/scifunc_block.man >> /tmp/Chap15.tex
170 @echo "\section{Data Structures}" >> /tmp/Chap15.tex
171 $(TR2TEX) -m $(MAN)/scicos/scicos_main.man >> /tmp/Chap15.tex
172 $(TR2TEX) -m $(MAN)/scicos/scicos_block.man >> /tmp/Chap15.tex
173 $(TR2TEX) -m $(MAN)/scicos/scicos_graphics.man >> /tmp/Chap15.tex
174 $(TR2TEX) -m $(MAN)/scicos/scicos_model.man >> /tmp/Chap15.tex
175 $(TR2TEX) -m $(MAN)/scicos/scicos_link.man >> /tmp/Chap15.tex
176 $(TR2TEX) -m $(MAN)/scicos/scicos_cpr.man >> /tmp/Chap15.tex
177 @echo "\section{Useful Functions}" >> /tmp/Chap15.tex
178 $(TR2TEX) -m $(MAN)/scicos/standard_*.man >> /tmp/Chap15.tex
179 $(TR2TEX) -m $(MAN)/scicos/scicosim.man >> /tmp/Chap15.tex
180 $(TR2TEX) -m $(MAN)/scicos/curblock.man >> /tmp/Chap15.tex
181 $(TR2TEX) -m $(MAN)/scicos/getblocklabel.man >> /tmp/Chap15.tex
182 $(TR2TEX) -m $(MAN)/scicos/?*scicosvars.man >> /tmp/Chap15.tex
183 @sed -e 's/\\documentstyle/%\\documentstyle/' -e 's/\\end{document}//' -e 's/\\begin{document}//' /tmp/Chap15.tex > Chap15.tex
184 $(RM) /tmp/Chap15.tex
186 Chap16.tex : $(TR2TEX) $(MAN)/sound/?*.man
187 $(TR2TEX) -m $(MAN)/sound/?*.man > /tmp/Chap16.tex
188 @sed -e 's/\\documentstyle/%\\documentstyle/' -e 's/\\end{document}//' -e 's/\\begin{document}//' /tmp/Chap16.tex > Chap16.tex
189 $(RM) /tmp/Chap16.tex
191 Chap17.tex : $(TR2TEX) $(MAN)/dcd/?*.man
192 $(TR2TEX) -m $(MAN)/dcd/?*.man > /tmp/Chap17.tex
193 @sed -e 's/\\documentstyle/%\\documentstyle/' -e 's/\\end{document}//' -e 's/\\begin{document}//' /tmp/Chap17.tex > Chap17.tex
194 $(RM) /tmp/Chap17.tex
196 Chap19.tex : $(TR2TEX) $(MAN)/tksci/?*.man
197 $(TR2TEX) -m $(MAN)/tksci/?*.man > /tmp/Chap19.tex
198 @sed -e 's/\\documentstyle/%\\documentstyle/' -e 's/\\end{document}//' -e 's/\\begin{document}//' /tmp/Chap19.tex > Chap19.tex
199 $(RM) /tmp/Chap19.tex
200 Chap20.tex : $(TR2TEX) $(MAN)/translation/?*.man
201 $(TR2TEX) -m $(MAN)/translation/?*.man > /tmp/Chap20.tex
202 @sed -e 's/\\documentstyle/%\\documentstyle/' -e 's/\\end{document}//' -e 's/\\begin{document}//' /tmp/Chap20.tex > Chap20.tex
203 $(RM) /tmp/Chap20.tex
204 Chap21.tex : $(TR2TEX) $(MAN)/pvm/?*.man $(MAN)/comm/?*.man
205 $(TR2TEX) -m $(MAN)/pvm/?*.man > /tmp/Chap21.tex
206 $(TR2TEX) -m $(MAN)/comm/?*.man >> /tmp/Chap21.tex
207 @sed -e 's/\\documentstyle/%\\documentstyle/' -e 's/\\end{document}//' -e 's/\\begin{document}//' /tmp/Chap21.tex > Chap21.tex
208 $(RM) /tmp/Chap21.tex
211 $(RM) *.aux *.log Chap*.tex *.dvi *.ind *.idx *.ilg *.toc *.lot \
212 Docu_pdf.* *.tmp Manual_pdf.ps Warnings *.haux *.hind *.html