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