updates.
[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 install-dirs-client:
46         -mkdir -p $(etcdir)
47         -mkdir -p $(helpdir)
48         -mkdir -p $(mandir)/man1
49
50 doc-install-client:
51         $(INSTALL_DATA) $(srcdir)/apps/irssi/silc.conf $(docdir)/example_silc.conf
52         -@if test -f $(srcdir)/doc/silc.1 ; then \
53          $(INSTALL_DATA) $(srcdir)/doc/silc.1 $(mandir)/man1; \
54         fi
55
56 etc-install-client:
57         -@if test '!' -d $(srcdir)/apps/irssi ; then \
58           if test '!' -f $(etcdir)/silc.conf ; then \
59             $(INSTALL_DATA) $(srcdir)/apps/irssi/silc.conf \
60                 $(etcdir)/silc.conf; \
61           fi; \
62         fi
63
64 install-data-hook:              \
65         install-dirs-client     \
66         doc-install-client      \
67         etc-install-client
68 #endif SILC_DIST_CLIENT
69
70 #ifdef SILC_DIST_SILC
71 include $(top_srcdir)/Makefile.defines.in
72 #endif SILC_DIST_SILC