Typo fixes.
[silc.git] / doc / Makefile.am.pre
1 #
2 #  Makefile.am
3 #
4 #  Author: Pekka Riikonen <priikone@poseidon.pspt.fi>
5 #
6 #  Copyright (C) 2000 - 2001 Pekka Riikonen
7 #
8 #  This program is free software; you can redistribute it and/or modify
9 #  it under the terms of the GNU General Public License as published by
10 #  the Free Software Foundation; either version 2 of the License, or
11 #  (at your option) any later version.
12 #
13 #  This program is distributed in the hope that it will be useful,
14 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
15 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 #  GNU General Public License for more details.
17 #
18
19 AUTOMAKE_OPTIONS = 1.0 no-dependencies foreign
20
21 COMMONDIRS = .
22 SUBDIRS = SILC_DISTRIBUTION_SUBDIRS
23 DIST_SUBDIRS = SILC_DISTRIBUTION_SUBDIRS
24 makerfc = ../scripts/makerfc
25
26 all:
27         touch draft-riikonen-silc-spec-05.txt
28         touch draft-riikonen-silc-pp-05.txt
29         touch draft-riikonen-silc-ke-auth-05.txt
30         touch draft-riikonen-silc-commands-03.txt
31         touch draft-riikonen-silc-flags-payloads-00.txt
32         touch draft-riikonen-presence-attrs-00.txt
33
34 if SILC_DIST_CLIENT
35 dist-hook:
36         rm draft-riikonen*.txt
37         touch draft-riikonen-silc-spec-05.txt
38         touch draft-riikonen-silc-pp-05.txt
39         touch draft-riikonen-silc-ke-auth-05.txt
40         touch draft-riikonen-silc-commands-03.txt
41         touch draft-riikonen-silc-flags-payloads-00.txt
42         touch draft-riikonen-presence-attrs-00.txt
43 else
44 if SILC_DIST_TOOLKIT
45 toolkit-ref-html:
46         -@if test -f $(SILC_TOP_SRCDIR)/util/robodoc/Source/robodoc ; then \
47           echo Generating Toolkit Reference Manual ; \
48           rm -rf toolkit ; mkdir toolkit ; cd ../scripts/silcdoc ; \
49           ./silcdoc HTML ../../lib/ $(SILC_TOP_SRCDIR)/doc/toolkit \
50           $(SILC_TOP_SRCDIR)/util/robodoc/Source/robodoc ; \
51         else  \
52           echo ROBODoc is not compiled! Cannot generate documentation! ; \
53         fi
54
55 toolkit-ref-ps:
56         -@if test -f $(SILC_TOP_SRCDIR)/util/robodoc/Source/robodoc ; then \
57           echo Generating Toolkit Reference Manual ; \
58           cd ../scripts/silcdoc ; \
59           ./silcdoc PS ../../lib/ $(SILC_TOP_SRCDIR)/doc/toolkit.ps \
60           $(SILC_TOP_SRCDIR)/util/robodoc/Source/robodoc ; \
61         else  \
62           echo ROBODoc is not compiled! Cannot generate documentation! ; \
63         fi
64
65 toolkit-ref-pdf:
66         -ps2pdf $(SILC_TOP_SRCDIR)/doc/toolkit.ps $(SILC_TOP_SRCDIR)/doc/toolkit.pdf
67
68 dist-hook: toolkit-ref-html
69         touch draft-riikonen-silc-spec-05.txt
70         touch draft-riikonen-silc-pp-05.txt
71         touch draft-riikonen-silc-ke-auth-05.txt
72         touch draft-riikonen-silc-commands-03.txt
73         touch draft-riikonen-silc-flags-payloads-00.txt
74         touch draft-riikonen-presence-attrs-00.txt
75         $(makerfc) draft-riikonen-silc-spec-05.nroff \
76                 draft-riikonen-silc-spec-05.txt
77         $(makerfc) draft-riikonen-silc-pp-05.nroff \
78                 draft-riikonen-silc-pp-05.txt
79         $(makerfc) draft-riikonen-silc-ke-auth-05.nroff \
80                 draft-riikonen-silc-ke-auth-05.txt
81         $(makerfc) draft-riikonen-silc-commands-03.nroff \
82                 draft-riikonen-silc-commands-03.txt
83         $(makerfc) draft-riikonen-silc-flags-payloads-00.nroff \
84                 draft-riikonen-silc-flags-payloads-00.txt
85         $(makerfc) draft-riikonen-presence-attrs-00.nroff \
86                 draft-riikonen-presence-attrs-00.txt
87 else
88 dist-hook:
89         touch draft-riikonen-silc-spec-05.txt
90         touch draft-riikonen-silc-pp-05.txt
91         touch draft-riikonen-silc-ke-auth-05.txt
92         touch draft-riikonen-silc-commands-03.txt
93         touch draft-riikonen-silc-flags-payloads-00.txt
94         touch draft-riikonen-presence-attrs-00.txt
95         $(makerfc) draft-riikonen-silc-spec-05.nroff \
96                 draft-riikonen-silc-spec-05.txt
97         $(makerfc) draft-riikonen-silc-pp-05.nroff \
98                 draft-riikonen-silc-pp-05.txt
99         $(makerfc) draft-riikonen-silc-ke-auth-05.nroff \
100                 draft-riikonen-silc-ke-auth-05.txt
101         $(makerfc) draft-riikonen-silc-commands-03.nroff \
102                 draft-riikonen-silc-commands-03.txt
103         $(makerfc) draft-riikonen-presence-attrs-00.nroff \
104                 draft-riikonen-presence-attrs-00.txt
105 endif
106 endif
107
108 if SILC_DIST_TOOLKIT
109 SILC_EXTRA_DIST = toolkit examples
110 else
111 if SILC_DIST_SERVER
112 SILC_EXTRA_DIST = examples
113 else
114 SILC_EXTRA_DIST =
115 endif
116 endif
117
118 EXTRA_DIST = \
119         CodingStyle \
120         FAQ \
121         example_silcd.conf \
122         silcalgs.conf \
123         draft-riikonen*.txt $(SILC_EXTRA_DIST)