-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
427 lines (219 loc) · 10.7 KB
/
index.html
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
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="last-modified" content="2016-07-19 12:34:48 +0200">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="search-domain" value="/swc-releases/2016.06/make-novice">
<link rel="stylesheet" type="text/css" href="/swc-releases/2016.06/make-novice/assets/css/bootstrap.css" />
<link rel="stylesheet" type="text/css" href="/swc-releases/2016.06/make-novice/assets/css/bootstrap-theme.css" />
<link rel="stylesheet" type="text/css" href="/swc-releases/2016.06/make-novice/assets/css/lesson.css" />
<link rel="shortcut icon" type="image/x-icon" href="/favicon-swc.ico" />
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<title>Automation and Make</title>
</head>
<body>
<div class="container">
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="https://software-carpentry.org" class="pull-left">
<img class="navbar-logo" src="/swc-releases/2016.06/make-novice/assets/img/swc-icon-blue.svg" alt="Software Carpentry logo" />
</a>
<a class="navbar-brand" href="/swc-releases/2016.06/make-novice/">Home</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li><a href="/swc-releases/2016.06/make-novice/conduct/">Code of Conduct</a></li>
<li><a href="/swc-releases/2016.06/make-novice/setup/">Setup</a></li>
<li><a href="/swc-releases/2016.06/make-novice/reference/">Reference</a></li>
<li class="dropdown">
<a href="/swc-releases/2016.06/make-novice/" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Episodes <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="/swc-releases/2016.06/make-novice/01-intro/">Introduction</a></li>
<li><a href="/swc-releases/2016.06/make-novice/02-makefiles/">Makefiles</a></li>
<li><a href="/swc-releases/2016.06/make-novice/03-variables/">Automatic Variables</a></li>
<li><a href="/swc-releases/2016.06/make-novice/04-dependencies/">Dependencies on Data and Code</a></li>
<li><a href="/swc-releases/2016.06/make-novice/05-patterns/">Pattern Rules</a></li>
<li><a href="/swc-releases/2016.06/make-novice/06-variables/">Variables</a></li>
<li><a href="/swc-releases/2016.06/make-novice/07-functions/">Functions</a></li>
<li><a href="/swc-releases/2016.06/make-novice/08-self-doc/">Self-Documenting Makefiles</a></li>
<li><a href="/swc-releases/2016.06/make-novice/09-conclusion/">Conclusion</a></li>
</ul>
</li>
<li class="dropdown">
<a href="/swc-releases/2016.06/make-novice/" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Extras <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="/swc-releases/2016.06/make-novice/about/">About</a></li>
<li><a href="/swc-releases/2016.06/make-novice/extras/discuss.html">Discussion</a></li>
<li><a href="/swc-releases/2016.06/make-novice/figures/">Figures</a></li>
<li><a href="/swc-releases/2016.06/make-novice/extras/guide.html">Instructor's Guide</a></li>
</ul>
</li>
<li><a href="/swc-releases/2016.06/make-novice/license/">License</a></li>
</ul>
<form class="navbar-form navbar-right" role="search" id="search" onsubmit="google_search(); return false;">
<div class="form-group">
<input type="text" id="google-search" placeholder="Search...">
</div>
</form>
</div>
</div>
</nav>
<h1 class="maintitle"><a href="/swc-releases/2016.06/make-novice/">Automation and Make</a></h1>
<p>Make is a tool which can run commands to read files, process these
files in some way, and write out the processed files. For example,
in software development, Make is used to compile source code
into executable programs or libraries, but Make can also be used
to:</p>
<ul>
<li>run analysis scripts on raw data files to get data files that
summarize the raw data;</li>
<li>run visualization scripts on data files to produce plots; and to</li>
<li>parse and combine text files and plots to create papers.</li>
</ul>
<p>Make is called a build tool - it builds data files, plots, papers,
programs or libraries. It can also update existing files if
desired.</p>
<p>Make tracks the dependencies between the files it creates and the
files used to create these. If one of the original files (e.g. a data
file) is changed, then Make knows to recreate, or update, the files
that depend upon this file (e.g. a plot).</p>
<p>There are now many build tools available, all of which are based on
the same concepts as Make.</p>
<blockquote class="prereq">
<h2 id="prerequisites">Prerequisites</h2>
<p>In this lesson we use <code class="highlighter-rouge">make</code> from the Unix Shell. Some previous
experience with using the shell to list directories, create, copy,
remove and list files and directories, and run simple scripts is
necessary.</p>
</blockquote>
<div class="syllabus">
<h2>Schedule</h2>
<table class="table table-striped">
<tr>
<td class="col-md-1">00:00</td>
<td class="col-md-3">
<a href="/swc-releases/2016.06/make-novice/01-intro/">Introduction</a>
</td>
<td class="col-md-7">
How can I make my results easier to reproduce?
</td>
</tr>
<tr>
<td class="col-md-1">00:30</td>
<td class="col-md-3">
<a href="/swc-releases/2016.06/make-novice/02-makefiles/">Makefiles</a>
</td>
<td class="col-md-7">
How do I write a simple Makefile?
</td>
</tr>
<tr>
<td class="col-md-1">01:00</td>
<td class="col-md-3">
<a href="/swc-releases/2016.06/make-novice/03-variables/">Automatic Variables</a>
</td>
<td class="col-md-7">
How can I abbreviate the rules in my Makefiles?
</td>
</tr>
<tr>
<td class="col-md-1">01:30</td>
<td class="col-md-3">
<a href="/swc-releases/2016.06/make-novice/04-dependencies/">Dependencies on Data and Code</a>
</td>
<td class="col-md-7">
How can I write a Makefile to update things when my scripts have changed rather than my input files?
</td>
</tr>
<tr>
<td class="col-md-1">02:00</td>
<td class="col-md-3">
<a href="/swc-releases/2016.06/make-novice/05-patterns/">Pattern Rules</a>
</td>
<td class="col-md-7">
How can I define rules to operate on similar files?
</td>
</tr>
<tr>
<td class="col-md-1">02:30</td>
<td class="col-md-3">
<a href="/swc-releases/2016.06/make-novice/06-variables/">Variables</a>
</td>
<td class="col-md-7">
How can I eliminate redundancy in my Makefiles?
</td>
</tr>
<tr>
<td class="col-md-1">03:00</td>
<td class="col-md-3">
<a href="/swc-releases/2016.06/make-novice/07-functions/">Functions</a>
</td>
<td class="col-md-7">
How else can I eliminate redundancy in my Makefiles?
</td>
</tr>
<tr>
<td class="col-md-1">03:30</td>
<td class="col-md-3">
<a href="/swc-releases/2016.06/make-novice/08-self-doc/">Self-Documenting Makefiles</a>
</td>
<td class="col-md-7">
How should I document a Makefile?
</td>
</tr>
<tr>
<td class="col-md-1">04:00</td>
<td class="col-md-3">
<a href="/swc-releases/2016.06/make-novice/09-conclusion/">Conclusion</a>
</td>
<td class="col-md-7">
What are the advantages and disadvantages of using tools like Make?
</td>
</tr>
<tr>
<td class="col-md-1">04:30</td>
<td class="col-md-3">Finish</td>
<td class="col-md-7"></td>
</tr>
</table>
</div>
<hr/>
<footer>
<div class="row">
<div class="col-md-6" align="left">
<h4>
Copyright © 2016
<a href="https://software-carpentry.org">Software Carpentry Foundation</a>
</h4>
</div>
<div class="col-md-6" align="right">
<h4>
<a href="/">Source</a>
/
<a href="/blob/gh-pages/CONTRIBUTING.md">Contributing</a>
/
<a href="mailto:[email protected]">Contact</a>
</h4>
</div>
</div>
</footer>
</div>
<script src="/swc-releases/2016.06/make-novice/assets/js/jquery.min.js"></script>
<script src="/swc-releases/2016.06/make-novice/assets/js/bootstrap.min.js"></script>
<script src="/swc-releases/2016.06/make-novice/assets/js/lesson.js"></script>
</body>
</html>