updates
[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
33 if SILC_DIST_CLIENT
34 dist-hook:
35         rm draft-riikonen*.txt
36         touch draft-riikonen-silc-spec-05.txt
37         touch draft-riikonen-silc-pp-05.txt
38         touch draft-riikonen-silc-ke-auth-05.txt
39         touch draft-riikonen-silc-commands-03.txt
40         touch draft-riikonen-silc-flags-payloads-00.txt
41 else
42 if SILC_DIST_TOOLKIT
43 dist-hook:
44         -@if test -f ../util/robodoc/Source/robodoc ; then \
45           echo Generating Toolkit Reference Manual ; \
46           rm -rf toolkit ; mkdir toolkit ; cd ../scripts/silcdoc ; \
47           ./silcdoc HTML ../../lib/ ../../doc/toolkit \
48           ../../util/robodoc/Source/robodoc ; \
49         else  \
50           echo ROBODoc is not compiled! Cannot generate documentation! ; \
51         fi
52         touch draft-riikonen-silc-spec-05.txt
53         touch draft-riikonen-silc-pp-05.txt
54         touch draft-riikonen-silc-ke-auth-05.txt
55         touch draft-riikonen-silc-commands-03.txt
56         touch draft-riikonen-silc-flags-payloads-00.txt
57         $(makerfc) draft-riikonen-silc-spec-05.nroff \
58                 draft-riikonen-silc-spec-05.txt
59         $(makerfc) draft-riikonen-silc-pp-05.nroff \
60                 draft-riikonen-silc-pp-05.txt
61         $(makerfc) draft-riikonen-silc-ke-auth-05.nroff \
62                 draft-riikonen-silc-ke-auth-05.txt
63         $(makerfc) draft-riikonen-silc-commands-03.nroff \
64                 draft-riikonen-silc-commands-03.txt
65         $(makerfc) draft-riikonen-silc-flags-payloads-00.nroff \
66                 draft-riikonen-silc-flags-payloads-00.txt
67 else
68 dist-hook:
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         $(makerfc) draft-riikonen-silc-spec-05.nroff \
75                 draft-riikonen-silc-spec-05.txt
76         $(makerfc) draft-riikonen-silc-pp-05.nroff \
77                 draft-riikonen-silc-pp-05.txt
78         $(makerfc) draft-riikonen-silc-ke-auth-05.nroff \
79                 draft-riikonen-silc-ke-auth-05.txt
80         $(makerfc) draft-riikonen-silc-commands-03.nroff \
81                 draft-riikonen-silc-commands-03.txt
82         $(makerfc) draft-riikonen-silc-flags-payloads-00.nroff \
83                 draft-riikonen-silc-flags-payloads-00.txt
84 endif
85 endif
86
87 if SILC_DIST_TOOLKIT
88 SILC_EXTRA_DIST = toolkit examples
89 else
90 if SILC_DIST_SERVER
91 SILC_EXTRA_DIST = examples
92 else
93 SILC_EXTRA_DIST =
94 endif
95 endif
96
97 EXTRA_DIST = \
98         CodingStyle \
99         FAQ \
100         example_silcd.conf \
101         silcalgs.conf \
102         draft-riikonen*.txt $(SILC_EXTRA_DIST)