test4.
[silc.git] / doc / Makefile.ad
1 #
2 #  Makefile.ad
3 #
4 #  Author: Pekka Riikonen <priikone@silcnet.org>
5 #
6 #  Copyright (C) 2000 - 2005 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; version 2 of the License.
11 #
12 #  This program is distributed in the hope that it will be useful,
13 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
14 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 #  GNU General Public License for more details.
16 #
17
18 AUTOMAKE_OPTIONS = 1.0 no-dependencies foreign
19
20 all:
21         touch draft-riikonen-silc-spec-08.txt
22         touch draft-riikonen-silc-pp-09.txt
23         touch draft-riikonen-silc-ke-auth-08.txt
24         touch draft-riikonen-silc-commands-06.txt
25         touch draft-riikonen-silc-flags-payloads-04.txt
26         touch draft-riikonen-presence-attrs-03.txt
27
28 #ifdef SILC_DIST_TOOLKIT
29 makerfc = $(SILC_TOP_SRCDIR)/scripts/makerfc
30
31 toolkit-ref-html:
32         -@if test -f $(SILC_TOP_SRCDIR)/util/robodoc/Source/robodoc ; then \
33           echo Generating Toolkit Reference Manual ; \
34           rm -rf toolkit ; mkdir toolkit ; cd ../scripts/silcdoc ; \
35           ./silcdoc HTML ../../lib/ $(SILC_TOP_SRCDIR)/doc/toolkit \
36           $(SILC_TOP_SRCDIR)/util/robodoc/Source/robodoc ; \
37         else  \
38           echo ROBODoc is not compiled! Cannot generate documentation! ; \
39         fi
40
41 toolkit-ref-pdf:
42         -@if test -f $(SILC_TOP_SRCDIR)/util/robodoc/Source/robodoc ; then \
43           echo Generating Toolkit Reference Manual ; \
44           cd ../scripts/silcdoc ; \
45           ./silcdoc PS ../../lib/ $(SILC_TOP_SRCDIR)/doc/toolkit.ps \
46           $(SILC_TOP_SRCDIR)/util/robodoc/Source/robodoc ; \
47           ps2pdf $(SILC_TOP_SRCDIR)/doc/toolkit.ps $(SILC_TOP_SRCDIR)/doc/toolkit.pdf; \
48           rm -rf $(SILC_TOP_SRCDIR)/doc/toolkit.ps; \
49         else  \
50           echo ROBODoc is not compiled! Cannot generate documentation! ; \
51         fi
52
53 dist-hook:
54         rm -rf `find $(top_distdir)/doc -name CVS`
55         $(SILC_TOP_SRCDIR)/scripts/manpages.pl
56         touch draft-riikonen-silc-spec-08.txt
57         touch draft-riikonen-silc-pp-09.txt
58         touch draft-riikonen-silc-ke-auth-08.txt
59         touch draft-riikonen-silc-commands-06.txt
60         touch draft-riikonen-silc-flags-payloads-04.txt
61         touch draft-riikonen-presence-attrs-03.txt
62         $(makerfc) draft-riikonen-silc-spec-08.nroff \
63                 draft-riikonen-silc-spec-08.txt
64         $(makerfc) draft-riikonen-silc-pp-09.nroff \
65                 draft-riikonen-silc-pp-09.txt
66         $(makerfc) draft-riikonen-silc-ke-auth-08.nroff \
67                 draft-riikonen-silc-ke-auth-08.txt
68         $(makerfc) draft-riikonen-silc-commands-06.nroff \
69                 draft-riikonen-silc-commands-06.txt
70         $(makerfc) draft-riikonen-silc-flags-payloads-04.nroff \
71                 draft-riikonen-silc-flags-payloads-04.txt
72         $(makerfc) draft-riikonen-presence-attrs-03.nroff \
73                 draft-riikonen-presence-attrs-03.txt
74
75 #else !SILC_DIST_TOOLKIT
76 dist-hook:
77         rm -rf `find $(top_distdir)/doc -name CVS`
78         $(SILC_TOP_SRCDIR)/scripts/manpages.pl
79         rm draft-riikonen*.txt
80         touch draft-riikonen-silc-spec-08.txt
81         touch draft-riikonen-silc-pp-09.txt
82         touch draft-riikonen-silc-ke-auth-08.txt
83         touch draft-riikonen-silc-commands-06.txt
84         touch draft-riikonen-silc-flags-payloads-04.txt
85         touch draft-riikonen-presence-attrs-03.txt
86 #endif SILC_DIST_TOOLKIT
87
88 EXTRA_DIST =                    \
89 #ifdef SILC_DIST_CLIENT
90         silc.1                  \
91 #endif SILC_DIST_CLIENT
92 #ifdef SILC_DIST_SERVER
93         examples silcd.8 silcd.conf.5   \
94 #endif SILC_DIST_SERVER
95 #ifdef SILC_DIST_TOOLKIT
96         toolkit                 \
97         CodingStyle             \
98 #endif SILC_DIST_TOOLKIT
99         FAQ                     \
100         example_silcd.conf      \
101         silcalgs.conf           \
102         draft-riikonen*.txt