Commit | Line | Data |
---|---|---|
495ae4b0 PH |
1 | # $Cambridge: exim/doc/doc-scripts/Makefile,v 1.1 2004/10/07 15:04:35 ph10 Exp $ |
2 | ||
3 | # Makefile for Exim documentation | |
4 | ||
5 | ps:; sgcal-fr spec.src -v -to z-gcode -index z-rawindex | |
6 | sgtops z-gcode -to z-ps | |
7 | ||
8 | txt:; g2man | |
9 | sgcal-fr spec.src -style online -v -to z-txt -index z-rawindex | |
10 | ||
11 | contents:; @DoConts | |
12 | ||
13 | index:; @DoIndex | |
14 | ||
15 | # The file z-rawindex is included by the filter source to create a TOC. | |
16 | # First empty it, then do a dummy format to create it, then do a second | |
17 | # pass. This works because the TOC occupies no more than the rest of the | |
18 | # first page. | |
19 | ||
20 | filterps:; /bin/rm -rf z-rawindex | |
21 | touch z-rawindex | |
22 | sgcal-fr filter.src -v -to z-gcode -index z-rawindex | |
23 | sgcal-fr filter.src -v -to z-gcode -index /dev/null | |
24 | sgtops z-gcode -to filter.ps | |
25 | ||
26 | filtertxt:; /bin/rm -rf z-rawindex | |
27 | touch z-rawindex | |
28 | sgcal-fr filter.src -style online -v -to filter.txt -index z-rawindex | |
29 | sgcal-fr filter.src -style online -v -to filter.txt -index /dev/null | |
30 | ||
31 | clean:; /bin/rm -f z* |