1 E.g., for the typechecker sources of the compiler.
3 % cd compiler/typechecker/
5 * make a Jmakefile that is NOT plugged into the overall make-world
6 system; it will probably look like this:
8 ------------------------------
9 /* this is a standalone Jmakefile; NOT part of ghc "make world" */
11 LitDocRootTargetWithNamedOutput(root,lit,root-standalone)
12 ------------------------------
14 * make a "root file", root.lit, to glue the modules together.
16 At the beginning you'll have something like:
18 \begin{onlystandalone}
19 \documentstyle[11pt,literate,a4wide]{article}
21 \title{The Glasgow \Haskell{} typechecker}
22 \author{The GRASP team}
29 \section[Typechecker]{The typechecker}
33 At the end of the file, you'll need something like:
39 \begin{onlystandalone}
44 In between, simply \input all the modules, possibly adding some
47 \section[Typechecker-core]{Typechecking the abstract syntax}
53 \section[Typechecker-support]{Typechecker: supporting modules}
55 \input{AAAAAAAAAAA.lhs}
56 \input{BBBBBBBBBBB.lhs}
59 * To make your Makefile, do:
63 (because of a bug, you may have to do it twice :-)
65 * Then do "make depend".
67 * Now you are ready for business: