chiark
/
gitweb
/
~mdw
/
sod
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
713c499
)
doc/tutorial.tex: Fix option-dash formatting.
author
Mark Wooding
<mdw@distorted.org.uk>
Tue, 23 Jun 2020 09:34:52 +0000
(10:34 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Fri, 4 Jun 2021 18:54:59 +0000
(19:54 +0100)
doc/tutorial.tex
patch
|
blob
|
blame
|
history
diff --git
a/doc/tutorial.tex
b/doc/tutorial.tex
index 0e935f2bdf9979851fb7d0070b95d086cb479729..eb4b336b4f3f9ab3e7114230421dee120305fe34 100644
(file)
--- a/
doc/tutorial.tex
+++ b/
doc/tutorial.tex
@@
-99,8
+99,8
@@
complicated. If you use \man{make}{1}, then something like
SOD = sod \\+
.SUFFIXES: .sod .c .h \\
- .sod.c:; \$(SOD)
-tc \$<
\\
- .sod.h:; \$(SOD) -th \$<
+ .sod.c:; \$(SOD)
@-tc \$<
\\
+ .sod.h:; \$(SOD)
@
-th \$<
\end{prog}
ought to do the job.
@@
-128,7
+128,7
@@
The following is a simple Sod input file.
\end{prog}
Save it as @|greeter.sod|, and run
\begin{prog}
- sod
--gc --g
h greeter
+ sod
@-tc @-t
h greeter
\end{prog}
This will create files @|greeter.c| and @|greeter.h| in the current
directory. Here's how we might use such a simple thing.