-
Notifications
You must be signed in to change notification settings - Fork 77
/
Copy pathMakefile
364 lines (313 loc) · 8.09 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
#Este trabalho está licenciado sob a Licença Creative Commons Atribuição-CompartilhaIgual 3.0 Não Adaptada. Para ver uma cópia desta licença, visite https://creativecommons.org/licenses/by-sa/3.0/ ou envie uma carta para Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.
########################################
#
# ATENÇÃO
#
# POR SEGURANÇA, NÃO EDITE ESTE ARQUIVO.
#
########################################
CAP1=cap_aritmetica
CAP3=cap_equacao1d
CAP4=cap_intro
CAP5=cap_linsis
CAP6=cap_nlinsis
CAP7=cap_pvi
CAP8=cap_scilab
CAP9=cap_interp
CAP10=cap_ajuste
CAP11=cap_derivacao
CAP12=cap_integracao
CAP13=cap_pvc
CAP14=cap_python
CAP15=cap_octave
########################################
# FORMATO LIVRO PDF
########################################
pdf: main.tex
cp config-pdf-sci.knd config.knd
pdflatex main
bibtex main
makeindex main
pdflatex main
pdflatex main
pdf-sci: main.tex
cp config-pdf-sci.knd config.knd
pdflatex main
bibtex main
makeindex main
pdflatex main
pdflatex main
pdf-py: main.tex
cp config-pdf-py.knd config.knd
cp main.tex main-py.tex
pdflatex main-py
bibtex main-py
makeindex main-py
pdflatex main-py
pdflatex main-py
cp config-pdf-sci.knd config.knd
pdf-oct: main.tex
cp config-pdf-oct.knd config.knd
cp main.tex main-oct.tex
pdflatex main-oct
bibtex main-oct
makeindex main-oct
pdflatex main-oct
pdflatex main-oct
cp config-pdf-sci.knd config.knd
########################################
# FORMATO LIVRO DVI
########################################
dvi: main.tex
cp config-pdf-sci.knd config.knd
latex main
bibtex main
makeindex main
latex main
latex main
cp config-pdf-sci.knd config.knd
dvi-py: main.tex
cp config-pdf-py.knd config.knd
cp main.tex main-py.tex
latex main-py
bibtex main-py
makeindex main-py
latex main-py
latex main-py
cp config-pdf-sci.knd config.knd
dvi-oct: main.tex
cp config-pdf-oct.knd config.knd
cp main.tex main-oct.tex
latex main-oct
bibtex main-oct
makeindex main-oct
latex main-oct
latex main-oct
cp config-pdf-sci.knd config.knd
########################################
# FORMADO SLIDES PDF
########################################
slide: main.tex
cp config-slide-sci.knd config.knd
cp main.tex slide.tex
pdflatex slide
bibtex slide
makeindex slide
pdflatex slide
pdflatex slide
cp config-pdf-sci.knd config.knd
slide-oct: main.tex
cp config-slide-oct.knd config.knd
cp main.tex slide-oct.tex
pdflatex slide-oct
bibtex slide-oct
makeindex slide-oct
pdflatex slide-oct
pdflatex slide-oct
cp config-pdf-sci.knd config.knd
slide-py: main.tex
cp config-slide-py.knd config.knd
cp main.tex slide-py.tex
pdflatex slide-py
bibtex slide-py
makeindex slide-py
pdflatex slide-py
pdflatex slide-py
cp config-pdf-sci.knd config.knd
########################################
# FORMATO HTML
########################################
html: main-sci.html
html-oct: main-oct.html
html-py: main-py.html
main-sci.html: main.tex
cp config-html-sci.knd config.knd
mkdir -p ./html-sci
rm -f ./html-sci/*
latex main
bibtex main
latex main
latex main
htlatex main "myconfig,3,notoc*" " -cunihtf" "-d./html-sci/"
# mk4ht htlatex main "myconfig,3,notoc*" "" "-d./html/"
cp config-pdf-sci.knd config.knd
main-oct.html: main.tex
cp config-html-oct.knd config.knd
mkdir -p ./html-oct
rm -f ./html-oct/*
latex main
bibtex main
latex main
latex main
htlatex main "myconfig,3,notoc*" " -cunihtf" "-d./html-oct/"
# mk4ht htlatex main "myconfig,3,notoc*" "" "-d./html-oct/"
cp config-pdf-sci.knd config.knd
main-py.html: main.tex
cp config-html-py.knd config.knd
mkdir -p ./html-py
rm -f ./html-py/*
latex main
bibtex main
latex main
latex main
htlatex main "myconfig,3,notoc*" " -cunihtf" "-d./html-py/"
mk4ht htlatex main "myconfig,3,notoc*" "" "-d./html-py/"
cp config-pdf-sci.knd config.knd
########################################
# FORMATO EPUB
########################################
epub: main.tex
mkdir -p ./.tmp1
rm -rf ./.tmp1/*
cp config-html-sci.knd config.knd
latex main
bibtex main
latex main
latex main
htlatex main "ebook_config,html,2,notoc*" "" "-d./.tmp1/"
cp config-pdf-sci.knd config.knd
ebook-convert ./.tmp1/main.html main.epub \
--authors="Todos os Colaboradores"\
--cover=./rosto/cover-scilab-epub.png\
--comments="Para mais informações sobre este livro visite https://www.ufrgs.br/reamat/CalculoNumerico"
epub-oct: main.tex
mkdir -p ./.tmp1
rm -rf ./.tmp1/*
cp config-html-oct.knd config.knd
latex main
bibtex main
latex main
latex main
htlatex main "ebook_config,html,2,notoc*" "" "-d./.tmp1/"
cp config-pdf-sci.knd config.knd
ebook-convert ./.tmp1/main.html main-oct.epub \
--authors="Todos os Colaboradores"\
--comments="Para mais informações sobre este livro visite https://www.ufrgs.br/reamat/CalculoNumerico"
epub-py: main.tex
mkdir -p ./.tmp1
rm -rf ./.tmp1/*
cp config-html-py.knd config.knd
latex main
bibtex main
latex main
latex main
htlatex main "ebook_config,html,2,notoc*" "" "-d./.tmp1/"
cp config-pdf-sci.knd config.knd
ebook-convert ./.tmp1/main.html main-py.epub \
--authors="Todos os Colaboradores"\
--cover=./rosto/cover-python-epub.png\
--comments="Para mais informações sobre este livro visite https://www.ufrgs.br/reamat/CalculoNumerico"
########################################
# TODOS AS VERSÕES EM FORMATO PDF
########################################
all-pdf: main.tex
make clean
make pdf
make clean
make pdf-py
make clean
make pdf-oct
########################################
# TODOS AS VERSÕES EM FORMATO Slide
########################################
all-slide: main.tex
make clean
make slide
make clean
make slide-py
make clean
make slide-oct
########################################
# TODOS OS FORMATOS
########################################
all: main.tex
make clean
make pdf
make clean
make slide
make clean
make dvi
make clean
make html
make clean
make epub
all-oct: main.tex
make clean
make pdf-oct
make clean
make slide-oct
make clean
make dvi-oct
make clean
make html-oct
make clean
make epub-oct
all-py: main.tex
make clean
make pdf-py
make clean
make slide-py
make clean
make dvi-py
make clean
make html-py
make clean
make epub-py
.PHONY: clean
clean:
rm -f *.aux *.log *.out *.toc *.bbl \
*.idx *.ilg *.ind *.blg *.backup \
*.4tc *.lg *.tmp *.xref *.png *.html \
*.4ct *.css *.idv *.maf *.mtc *.mtc0 \
*.xml main-oct.tex main-py.tex
rm -f ${CAP1}/*.aux ${CAP1}/*.log ${CAP1}/*.backup
rm -f ${CAP2}/*.aux ${CAP2}/*.log ${CAP2}/*.backup
rm -f ${CAP3}/*.aux ${CAP3}/*.log ${CAP3}/*.backup
rm -f ${CAP4}/*.aux ${CAP4}/*.log ${CAP4}/*.backup
rm -f ${CAP5}/*.aux ${CAP5}/*.log ${CAP5}/*.backup
rm -f ${CAP6}/*.aux ${CAP6}/*.log ${CAP6}/*.backup
rm -f ${CAP7}/*.aux ${CAP7}/*.log ${CAP7}/*.backup
rm -f ${CAP8}/*.aux ${CAP8}/*.log ${CAP8}/*.backup
rm -f ${CAP9}/*.aux ${CAP9}/*.log ${CAP9}/*.backup
rm -f ${CAP10}/*.aux ${CAP10}/*.log ${CAP10}/*.backup
rm -f ${CAP11}/*.aux ${CAP11}/*.log ${CAP11}/*.backup
rm -f ${CAP12}/*.aux ${CAP12}/*.log ${CAP12}/*.backup
rm -f ${CAP13}/*.aux ${CAP13}/*.log ${CAP13}/*.backup
rm -f ${CAP14}/*.aux ${CAP14}/*.log ${CAP14}/*.backup
rm -f ${CAP15}/*.aux ${CAP15}/*.log ${CAP15}/*.backup
########################################
# EXTRAI EXERCÍCIOS
########################################
exer-sci:
make clean
cp config-pdf-sci.knd config.knd
python3 extrai_exercicios.py sci
latex main
latex exercicios-sci
latex exercicios_resolvidos-sci
latex exercicios_todos-sci
pdflatex exercicios-sci
pdflatex exercicios_resolvidos-sci
pdflatex exercicios_todos-sci
exer-py:
make clean
cp config-pdf-py.knd config.knd
python3 extrai_exercicios.py py
latex main
latex exercicios-py
latex exercicios_resolvidos-py
latex exercicios_todos-py
pdflatex exercicios-py
pdflatex exercicios_resolvidos-py
pdflatex exercicios_todos-py
exer-oct:
make clean
cp config-pdf-oct.knd config.knd
python3 extrai_exercicios.py oct
latex main
latex exercicios-oct
latex exercicios_resolvidos-oct
latex exercicios_todos-oct
pdflatex exercicios-oct
pdflatex exercicios_resolvidos-oct
pdflatex exercicios_todos-oct