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