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