Merged silc_1_0_branch to trunk.
[silc.git] / 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 SUBDIRS =               \
21 #ifdef SILC_DIST_LIB
22         @LIBSUBDIR@     \
23 #endif SILC_DIST_LIB
24 #ifdef SILC_DIST_APPS
25         apps            \
26 #endif SILC_DIST_APPS
27 #ifdef SILC_DIST_TOOLKIT
28         win32           \
29 #endif SILC_DIST_TOOLKIT
30 #ifdef SILC_DIST_INCLUDES
31         includes        \
32 #endif SILC_DIST_INCLUDES
33 #ifdef SILC_DIST_DOC
34         doc
35 #endif SILC_DIST_DOC
36
37 EXTRA_DIST =            \
38         silcdefs.h.in   \
39 #ifdef SILC_DIST_SILC
40         libtoolfix      \
41         CHANGES CREDITS
42 #endif SILC_DIST_SILC
43
44 #ifdef SILC_DIST_CLIENT
45 if with_irssi
46 install-dirs-client:
47         -mkdir -p $(etcdir)
48         -mkdir -p $(helpdir)
49         -mkdir -p $(mandir)/man1
50
51 doc-install-client:
52         $(INSTALL_DATA) $(srcdir)/apps/irssi/silc.conf $(docdir)/example_silc.conf
53         -@if test -f $(srcdir)/doc/silc.1 ; then \
54          $(INSTALL_DATA) $(srcdir)/doc/silc.1 $(mandir)/man1; \
55         fi
56
57 etc-install-client:
58         -@if test '!' -d $(srcdir)/apps/irssi ; then \
59           if test '!' -f $(etcdir)/silc.conf ; then \
60             $(INSTALL_DATA) $(srcdir)/apps/irssi/silc.conf \
61                 $(etcdir)/silc.conf; \
62           fi; \
63         fi
64
65 install-data-hook:              \
66         install-dirs-client     \
67         doc-install-client      \
68         etc-install-client
69 endif
70 #endif SILC_DIST_CLIENT
71
72 #ifdef SILC_DIST_SILC
73 include $(top_srcdir)/Makefile.defines.in
74 #endif SILC_DIST_SILC