Sun Mar 11 15:22:42 CET 2007 Jochen Eisinger <coffee@silcnet.org>
[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_TOOLKIT
40         symbian         \
41 #endif SILC_DIST_TOOLKIT
42 #ifdef SILC_DIST_SILC
43         libtoolfix      \
44         CHANGES CREDITS
45 #endif SILC_DIST_SILC
46
47 #ifdef SILC_DIST_CLIENT
48 if with_irssi
49 install-dirs-client:
50         -mkdir -p $(etcdir)
51         -mkdir -p $(helpdir)
52         -mkdir -p $(mandir)/man1
53
54 doc-install-client:
55         $(INSTALL_DATA) $(srcdir)/apps/irssi/silc.conf $(docdir)/example_silc.conf
56         -@if test -f $(srcdir)/doc/silc.1 ; then \
57          $(INSTALL_DATA) $(srcdir)/doc/silc.1 $(mandir)/man1; \
58         fi
59
60 etc-install-client:
61         -@if test '!' -d $(srcdir)/apps/irssi ; then \
62           if test '!' -f $(etcdir)/silc.conf ; then \
63             $(INSTALL_DATA) $(srcdir)/apps/irssi/silc.conf \
64                 $(etcdir)/silc.conf; \
65           fi; \
66         fi
67
68 install-data-hook:              \
69         install-dirs-client     \
70         doc-install-client      \
71         etc-install-client
72 endif
73 #endif SILC_DIST_CLIENT
74
75 #ifdef SILC_DIST_SILC
76 include $(top_srcdir)/Makefile.defines.in
77 #endif SILC_DIST_SILC